blockmatic/.github/workflows/ntfy.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 1: cannot unmarshal !!seq into model.Workflow
2025-01-10 20:52:53 +00:00

21 lines
693 B
YAML

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