refactor: remove ntfy workflow
This commit is contained in:
parent
b0a4a8fff6
commit
71c29a976c
1 changed files with 0 additions and 29 deletions
29
.github/workflows/ntfy.yaml
vendored
29
.github/workflows/ntfy.yaml
vendored
|
|
@ -1,29 +0,0 @@
|
||||||
name: Deployment Notifications
|
|
||||||
on: [deployment_status]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
notify:
|
|
||||||
if: always()
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Notify on Success
|
|
||||||
if: github.event.deployment_status.state == 'success'
|
|
||||||
run: |
|
|
||||||
curl \
|
|
||||||
-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: github.event.deployment_status.state == '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