Skip to content

Commit

Permalink
Update Discord notification in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed Mar 2, 2024
1 parent b41e521 commit 430b1bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/discord_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
RELEASE_NOTES=$(echo "$API_RESPONSE" | jq -r '.body' | tr -d '\n')
echo "release_notes=$RELEASE_NOTES" >> $GITHUB_ENV
# - name: Send Discord Notification
# env:
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
# run: |
# RELEASE_NOTES=$(echo "${{ steps.get_release_notes.outputs.release_notes }}")
# curl -H "Content-Type: application/json" -X POST -d "{\"content\":\"New release: $RELEASE_NOTES\"}" $DISCORD_WEBHOOK
- name: Send Discord Notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
RELEASE_NOTES=$(echo "${{ steps.get_release_notes.outputs.release_notes }}")
curl -H "Content-Type: application/json" -X POST -d "{\"content\":\"New release: $RELEASE_NOTES\"}" $DISCORD_WEBHOOK

0 comments on commit 430b1bf

Please sign in to comment.