Skip to content

Commit cfe2b49

Browse files
committed
Add failure notification
1 parent 9f7e301 commit cfe2b49

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,15 @@ jobs:
139139
enable-purge-pull-zone: true
140140
pull-zone-id: "4574563"
141141
replication-timeout: "15000"
142+
143+
notify-failure:
144+
name: Notify on Failure
145+
runs-on: ubuntu-latest
146+
needs: [setup, build, deploy]
147+
if: failure()
148+
steps:
149+
- name: Send failure notification
150+
uses: NiNiyas/ntfy-action@master
151+
with:
152+
url: 'https://ntfy.sh'
153+
topic: ${{ secrets.NTFY_TOPIC }}

0 commit comments

Comments
 (0)