Skip to content

Commit 80decbf

Browse files
authored
ci: release-please with discord hook
1 parent 827d5e3 commit 80decbf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,15 @@ jobs:
1616
if: ${{ github.ref == 'refs/heads/main' }}
1717
steps:
1818
- uses: googleapis/release-please-action@v4
19+
id: release
1920
with:
2021
release-type: simple
22+
- name: Send to Discord
23+
if: ${{ steps.release.outputs.release_created }}
24+
env:
25+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
26+
RELEASE_NOTES: ${{ steps.release.outputs.body }}
27+
run: |
28+
curl -H "Content-Type: application/json" -X POST -d '{
29+
"content": "New Release: ${{ steps.release.outputs.tag_name }}\n\n```markdown\n${{ steps.release.outputs.body }}\n```"
30+
}' $DISCORD_WEBHOOK_URL

0 commit comments

Comments
 (0)