diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cc34677..39f7ee8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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\"}"