Skip to content

Commit

Permalink
fix github action variable used
Browse files Browse the repository at this point in the history
  • Loading branch information
Bravo555 committed Sep 7, 2023
1 parent 1adfbee commit e7d21a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
env:
DISCORD_TOKEN: ${{ secrets.BOT_DISCORD_TOKEN }}
CHANNEL_ID: ${{ secrets.ANNOUNCEMENT_CHANNEL_ID }}
OLD_COMMIT_SHA: ${{ github.event.push.before }}
OLD_COMMIT_SHA: ${{ github.event.before }}
run: |
msg=$(git log --no-decorate ${OLD_COMMIT_SHA}..)
curl https://discord.com/api/channels/${CHANNEL_ID}/messages -H "Authorization: Bot ${DISCORD_TOKEN}" -X POST -H "Content-Type: application/json" -d '{"content": "Deploying new version of the bot...\nNew changes:\n\n'"$msg\"}"
Expand Down

0 comments on commit e7d21a9

Please sign in to comment.