CronNudge

Ping CronNudge from GitHub Actions

The action posts start, success, or fail to one check. It accepts a ping URL or a check id. It only calls cronnudge.com. It does not print the URL. It is not listed on the GitHub Marketplace. In this repo the workflow uses uses: ./github-action.

Example workflow

name: Nightly backup
on:
  schedule:
    - cron: "17 3 * * *"
  workflow_dispatch:
jobs:
  backup:
    runs-on: ubuntu-latest
    steps:
      - name: Tell CronNudge the job started
        uses: ./github-action
        with:
          ping-url: ${{ secrets.CRONNUDGE_URL }}
          signal: start
      - name: Do the work
        run: ./backup.sh
      - name: Tell CronNudge it succeeded
        if: success()
        uses: ./github-action
        with:
          ping-url: ${{ secrets.CRONNUDGE_URL }}
          signal: success
      - name: Tell CronNudge it failed
        if: failure()
        uses: ./github-action
        with:
          ping-url: ${{ secrets.CRONNUDGE_URL }}
          signal: fail

Inputs

A schedule that never starts still will not ping. Match the check to the workflow cron, and leave grace for runner queue time. Paste the schedule into the schedule checker. The curl version, without this action, is in the GitHub Actions doc.

Create the check this action pings