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
use release.md for discord announcement
Ronald A. Richardsone1ab6a3b1127
diff --git a/.github/workflows/discord-announcement.yml b/.github/workflows/discord-announcement.ymlindex a8e047ef..5cc78625 100644--- a/.github/workflows/discord-announcement.yml+++ b/.github/workflows/discord-announcement.yml@@ -1,9 +1,8 @@name: Discord Announcementon:- push:- tags:- - "v*"+ release:+ types: [published]jobs:discord_announcement:@@ -11,38 +10,30 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v2+ uses: actions/checkout@v3with:fetch-depth: 0-- - name: Get tag message- id: tag+ - name: Read release notes+ id: notesrun: |- echo "::set-output name=version::$(git describe --tags --abbrev=0)"- if [[ "${ACT}" == "true" ]]; then- # If running with act, use an environment variable for the tag message- echo "::set-output name=message::$(echo -e "${TAG_MESSAGE}" | base64)"- else- # If running on GitHub, use git to get the tag message- echo "::set-output name=message::$(git tag -l --format='%(contents)' $(git describe --tags --abbrev=0) | base64)"- fi-- - name: Print tag message- run: echo "${{ steps.tag.outputs.message }}"-+ body="$(cat RELEASE.md)"+ echo "::set-output name=message::$(echo "${body}" | base64 -w0)"- name: Get tag name- id: get_tag- run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"-- - name: Decode message+ id: tag+ run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"+ - name: Decode notesid: decoderun: |- echo "Decoding message..."- echo "::set-output name=message::$(echo '${{ steps.tag.outputs.message }}' | base64 --decode)"-+ echo "::set-output name=text::$(echo '${{ steps.notes.outputs.message }}' | base64 --decode)"- name: Send message to Discorduses: tsickert/[email protected]with:webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}- content: "@everyone \n📦 New Fleetbase Version ${{ steps.get_tag.outputs.tag }} Released!\n${{ steps.decode.outputs.message }} \nVersion: ${{ steps.get_tag.outputs.tag }} \n[Release Notes for ${{ steps.get_tag.outputs.tag }}](https://github.com/fleetbase/fleetbase/releases/tag/${{ steps.get_tag.outputs.tag }})"username: Fleetbase+ content: |+ @everyone+ 📦 **Fleetbase ${{ steps.tag.outputs.tag }} released!**++ ${{ steps.decode.outputs.text }}++ [View full notes on GitHub](https://github.com/fleetbase/fleetbase/releases/tag/${{ steps.tag.outputs.tag }})\ No newline at end of file