GitHub workflow with ntfy
public
Nov 01, 2023
Never
202
1 name: CI 2 3 # Controls when the workflow will run 4 on: 5 # Triggers the workflow on push or pull request events but only for the "main" branch 6 schedule: 7 # Runs "at minute 0 every hour" (see https://crontab.guru) 8 - cron: '0 * * * *' 9 10 # manually 11 workflow_dispatch: 12 13 jobs: 14 checkup: 15 runs-on: ubuntu-latest 16 steps: 17 - name: Check http status code of production site 18 uses: lakuapik/gh-actions-http-status@v1 19 with: 20 sites: '["https://example.com"]' 21 expected: '[200]' 22 - name: ntfy-failed-notifications 23 uses: niniyas/ntfy-action@master 24 if: failure() 25 with: 26 url: 'https://ntfy.sh' 27 topic: '' # insert your unique topic here 28 priority: 5 29 tags: +1,action,failed 30 details: Site down!