Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
fix discord announcement workflow, attempt 4
Ronald A. Richardsonb5ec15f0bb2a
diff --git a/.github/workflows/discord-announcement.yml b/.github/workflows/discord-announcement.ymlindex 5bc5bfd3..50d14796 100644--- a/.github/workflows/discord-announcement.yml+++ b/.github/workflows/discord-announcement.yml@@ -31,18 +31,20 @@ jobs:- uses: actions/checkout@v3with:ref: ${{ env.TAG }}- fetch-depth: 1 # we only need this one commit+ fetch-depth: 1# 3️⃣ Stash RELEASE.md in an env var (one atomic write → no EOF error)- - id: notes+ - id: prep-bodyshell: bashrun: |- # Trim to 1900 chars so Discord never rejects the message- body=$(<RELEASE.md)- [[ ${#body} -gt 1900 ]] && body="${body:0:1900}…"- {- printf 'RELEASE_BODY<<EOF\n%s\nEOF\n' "$body"- } >> "$GITHUB_ENV"+ body=$(<RELEASE.md)+ max=4000+ [[ ${#body} -gt $max ]] && body="${body:0:$max}…" # add ellipsis if trimmed+ {+ echo "body<<EOF"+ echo "$body"+ echo "EOF"+ } >> "$GITHUB_OUTPUT"# 4️⃣ Fire the webhook- uses: tsickert/[email protected]@@ -52,7 +54,8 @@ jobs:content: |@everyone📦 **Fleetbase ${{ env.TAG }} released!**-- ${{ env.RELEASE_BODY }}-- <https://github.com/${{ github.repository }}/releases/tag/${{ env.TAG }}>\ No newline at end of file+ <https://github.com/${{ github.repository }}/releases/tag/${{ env.TAG }}>+ embed-title: "Fleetbase ${{ env.TAG }} — release notes"+ embed-url: "https://github.com/fleetbase/fleetbase/releases/tag/${{ env.TAG }}"+ embed-description: ${{ steps.prep-body.outputs.body }}+ embed-color: 4362730 # 0x4291EA (Fleetbase Blue)\ No newline at end of file