fix: c78e0499 (ntfy workflow)

This commit is contained in:
trafficlunar 2025-01-10 20:56:12 +00:00
parent c78e049913
commit 8726ffeedd

View file

@ -1,21 +1,32 @@
- name: Notify on Success
if: 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: Ntfy Deployment Notifications
on:
push:
branches:
- main
- 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 }}
jobs:
notify:
if: failure() || success()
runs-on: ubuntu-latest
steps:
- name: Notify on Success
if: 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: 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 }}