Update build.yml

This commit is contained in:
Antony Messerli 2021-09-07 22:12:27 -05:00 committed by GitHub
parent 49ef65babf
commit 3185c71d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ jobs:
if: steps.version_check.outcome == 'success' && steps.version_check.conclusion == 'success' if: steps.version_check.outcome == 'success' && steps.version_check.conclusion == 'success'
run: | run: |
TEMPLATE='[{"color": $color, "description": $desc}]' TEMPLATE='[{"color": $color, "description": $desc}]'
DESC="__**Container Updated**__ \n**Container Name:** ${{ env.GITHUB_REPOSITORY }}\n**Version:** ${{ env.VERSION_TAG }}\n**Build:** https://github.com/${{ env.GITHUB_REPOSITORY }}/actions/runs/${{ env.GITHUB_RUN_ID }}\n**Status:** Success\n**Change:** https://github.com/${{ env.GITHUB_REPOSITORY }}/commit/${{ env.GITHUB_SHA }}\n" DESC='__**Container Updated**__ \n**Container Name:** $GITHUB_REPOSITORY\n**Version:** ${{ env.VERSION_TAG }}\n**Build:** https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\n**Status:** Success\n**Change:** https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA\n'
echo "DISCORD_EMBEDS=$(jq -nc --arg color "1681177" --arg desc "$DESC" "$TEMPLATE")" >> $GITHUB_ENV echo "DISCORD_EMBEDS=$(jq -nc --arg color "1681177" --arg desc "$DESC" "$TEMPLATE")" >> $GITHUB_ENV
- name: Discord notification - name: Discord notification