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
updated github workflow for a discord announcement
Ronald A. Richardsona5892a1cc48e
diff --git a/.github/workflows/discord_announcement.yml b/.github/workflows/discord_announcement.ymlindex 2cc055db..a8e047ef 100644--- a/.github/workflows/discord_announcement.yml+++ b/.github/workflows/discord_announcement.yml@@ -2,9 +2,9 @@ name: Discord Announcementon:push:- branches: [main]tags:- "v*"+jobs:discord_announcement:runs-on: ubuntu-latest@@ -13,15 +13,36 @@ jobs:- name: Checkout codeuses: actions/checkout@v2with:- fetch-depth: 0 # this is required to fetch all tags+ fetch-depth: 0- name: Get tag messageid: tag- run: echo "::set-output name=message::$(git for-each-ref refs/tags --format='%(contents)' ${{ github.ref }})"+ run: |+ 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 }}"++ - name: Get tag name+ id: get_tag+ run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"++ - name: Decode message+ id: decode+ run: |+ echo "Decoding message..."+ echo "::set-output name=message::$(echo '${{ steps.tag.outputs.message }}' | base64 --decode)"- name: Send message to Discorduses: tsickert/[email protected]with:webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}- content: "@everyone 📦 New Fleetbase Version ${{ steps.tag.outputs.tag }} Released! 🎉 \n ${{ steps.tag.outputs.message }} \n Version: ${{ steps.tag.outputs.tag }} \n [Release Notes](https://github.com/fleetbase/fleetbase/releases/tag/${{ steps.tag.outputs.tag }})"- username: Fleetbase\ No newline at end of file+ 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