Monitor scheduled GitHub Actions with HookPulse
Add one step to a scheduled workflow. The first run creates the monitor with the workflow schedule, with no secret.
Updated
1Add the HookPulse step
Add it at the end of the job, with if: always() so failures are reported too. The id-token permission identifies the repository.
on:
schedule:
- cron: "17 3 * * *"
permissions:
contents: read
id-token: write
jobs:
backup:
runs-on: ubuntu-latest
steps:
- run: ./backup.sh
- uses: wrpbr/hookpulse-action@v1
if: always()
with:
status: ${{ job.status }}2Run the workflow once
Run it from the Actions tab, or wait for the schedule. The job summary links to the new monitor and its status page.
3Choose where the alert goes
Set alert-url for Slack, Discord or another app. For e-mail alerts, add your setup key as the hookpulse-key secret.