GitHub Actions

Create a source in the Hookpager app, then save the channel token as the repository secret HOOKPAGER_TOKEN.

Action

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm run build
      - name: Notify on failure
        if: failure()
        uses: hookpager/hookpager-action@v1
        with:
          token: ${{ secrets.HOOKPAGER_TOKEN }}

curl, for runners without the action runtime

curl -fsS -X POST "https://hookpager.texttools.store/v1/c/github" \
  -H "Authorization: Bearer ${{ secrets.HOOKPAGER_TOKEN }}" \
  -H "Content-Type: application/json" \
  -d '{"title":"build failed","priority":"high","status":"firing"}'