Documentation

GitHub Actions

GitHub Actions schedules can run late or not at all. Watch them.

Under load, GitHub Actions may delay or drop a scheduled run. In a public repository, scheduled workflows are automatically disabled after 60 days without activity. Tickwatch helps detect a missing expected run even when the workflow never started.

yaml
name: nightly

on:
  schedule:
    - cron: "0 3 * * *"
  workflow_dispatch:

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - run: curl -fsS -m 10 --retry 3 "${{ secrets.TICKWATCH_PING }}/start"

      - uses: actions/checkout@v4
      - run: ./scripts/nightly.sh

      - name: Отчёт об успехе
        if: success()
        run: curl -fsS -m 10 --retry 3 "${{ secrets.TICKWATCH_PING }}"

      - name: Отчёт о падении
        if: failure()
        run: |
          curl -fsS -m 10 --retry 3 \
            --data-raw "workflow ${{ github.workflow }}, run ${{ github.run_id }}" \
            "${{ secrets.TICKWATCH_PING }}/fail"

Apply this to your job

GitHub Actions · Tickwatch