refactor: remove ntfy workflow

This commit is contained in:
trafficlunar 2025-02-08 13:03:44 +00:00
parent b0a4a8fff6
commit 71c29a976c

View file

@ -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 }}