This commit is contained in:
parent
72e369f1a2
commit
68c388a34f
|
@ -32,20 +32,11 @@ jobs:
|
||||||
- run: zig build -Dtarget=riscv64-linux
|
- run: zig build -Dtarget=riscv64-linux
|
||||||
- run: zig build -Dtarget=x86_64-macos
|
- run: zig build -Dtarget=x86_64-macos
|
||||||
- run: zig build -Dtarget=aarch64-macos
|
- run: zig build -Dtarget=aarch64-macos
|
||||||
- name: Success Notification
|
- name: Notify
|
||||||
if: success()
|
uses: https://git.lerch.org/lobo/action-notify-ntfy@v1
|
||||||
run: |
|
if: always()
|
||||||
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
with:
|
||||||
-H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \
|
host: ${{ secrets.NTFY_HOST }}
|
||||||
-H "Tags: +1" \
|
topic: ${{ secrets.NTFY_TOPIC }}
|
||||||
-d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
|
user: ${{ secrets.NTFY_USER }}
|
||||||
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
password: ${{ secrets.NTFY_PASSWORD }}
|
||||||
- name: Failure Notification
|
|
||||||
if: failure()
|
|
||||||
run: |
|
|
||||||
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
|
||||||
-H "Priority: high" \
|
|
||||||
-H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \
|
|
||||||
-H "Tags: warning" \
|
|
||||||
-d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
|
|
||||||
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user