fix: c78e0499 (ntfy workflow)
This commit is contained in:
parent
c78e049913
commit
8726ffeedd
1 changed files with 31 additions and 20 deletions
51
.github/workflows/ntfy.yaml
vendored
51
.github/workflows/ntfy.yaml
vendored
|
|
@ -1,21 +1,32 @@
|
||||||
- name: Notify on Success
|
name: Ntfy Deployment Notifications
|
||||||
if: success()
|
on:
|
||||||
run: |
|
push:
|
||||||
curl \
|
branches:
|
||||||
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
- main
|
||||||
-H "Title: blockmatic deployment succeeded" \
|
|
||||||
-H "Priority: low" \
|
|
||||||
-H "Tags: white_check_mark" \
|
|
||||||
-d $'Commit: ${{ github.event.head_commit.message }}\nHash: ${{ github.sha }}' \
|
|
||||||
${{ secrets.NTFY_URL }}
|
|
||||||
|
|
||||||
- name: Notify on Failure
|
jobs:
|
||||||
if: failure()
|
notify:
|
||||||
run: |
|
if: failure() || success()
|
||||||
curl \
|
runs-on: ubuntu-latest
|
||||||
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
steps:
|
||||||
-H "Title: blockmatic deployment failed" \
|
- name: Notify on Success
|
||||||
-H "Priority: max" \
|
if: success()
|
||||||
-H "Tags: x" \
|
run: |
|
||||||
-d $'Commit: ${{ github.event.head_commit.message }}\nHash: ${{ github.sha }}' \
|
curl \
|
||||||
${{ secrets.NTFY_URL }}
|
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
||||||
|
-H "Title: blockmatic deployment succeeded" \
|
||||||
|
-H "Priority: low" \
|
||||||
|
-H "Tags: white_check_mark" \
|
||||||
|
-d $'Commit: ${{ github.event.head_commit.message }}\nHash: ${{ github.sha }}' \
|
||||||
|
${{ secrets.NTFY_URL }}
|
||||||
|
|
||||||
|
- name: Notify on Failure
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
curl \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
||||||
|
-H "Title: blockmatic deployment failed" \
|
||||||
|
-H "Priority: max" \
|
||||||
|
-H "Tags: x" \
|
||||||
|
-d $'Commit: ${{ github.event.head_commit.message }}\nHash: ${{ github.sha }}' \
|
||||||
|
${{ secrets.NTFY_URL }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue