Skip to content

Commit

Permalink
ci: release-please with discord hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx authored Jul 23, 2024
1 parent 827d5e3 commit 80decbf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: simple
- name: Send to Discord
if: ${{ steps.release.outputs.release_created }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
RELEASE_NOTES: ${{ steps.release.outputs.body }}
run: |
curl -H "Content-Type: application/json" -X POST -d '{
"content": "New Release: ${{ steps.release.outputs.tag_name }}\n\n```markdown\n${{ steps.release.outputs.body }}\n```"
}' $DISCORD_WEBHOOK_URL

0 comments on commit 80decbf

Please sign in to comment.