Update release-webhook.yml
Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
parent
638df6aafd
commit
994381411d
1 changed files with 9 additions and 9 deletions
16
.github/workflows/release-webhook.yml
vendored
16
.github/workflows/release-webhook.yml
vendored
|
|
@ -7,17 +7,17 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-webhook:
|
release-webhook:
|
||||||
name: Send Release Webhook
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Send release notification webhook
|
- name: Send release notification webhook
|
||||||
env:
|
|
||||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
|
||||||
REPOSITORY: ${{ github.repository }}
|
|
||||||
WEBHOOK_URL: ${{ secrets.STOAT_WEBHOOK_UPDATES_URL }}
|
|
||||||
run: |
|
run: |
|
||||||
RELEASE_URL="https://github.com/${REPOSITORY}/releases/tag/${TAG_NAME}"
|
RELEASE_NAME="${{ github.event.release.name }}"
|
||||||
curl -X POST "$WEBHOOK_URL" \
|
TAG_NAME="${{ github.event.release.tag_name }}"
|
||||||
|
URL="${{ github.event.release.html_url }}"
|
||||||
|
|
||||||
|
MSG="🚀 New release: $RELEASE_NAME ($TAG_NAME) - $URL"
|
||||||
|
|
||||||
|
curl -X POST "https://stoat.chat/api/webhooks/01KM0VR768BP5W0CAB54ASK2QP/ruEjyZDLwgOip8ClH_oURUPu3LehRz_7yEXb1VVdO5ZuX2d4Pd8-z7aN0aQWmbrj" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"content\": \"$RELEASE_URL\"}"
|
-d "{\"content\":\"$MSG\"}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue