Skip to content

Commit b26a408

Browse files
committed
add action for release
1 parent 1a87dcb commit b26a408

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Webhook
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
notify:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Send POST request
10+
run: |
11+
curl -X POST -H "Content-Type: application/json" -d '{"appId": $APP_ID, "releaseId": "${{ github.event.release.id }}"}' $WEBHOOK_URL
12+
env:
13+
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
14+
APP_ID: ${{ secrets.APP_ID }}

0 commit comments

Comments
 (0)