A GitHub Action that installs a Dagu release on the runner and adds dagu to PATH.
steps:
- uses: actions/checkout@v7
- uses: dagucloud/setup-dagu@v1
- run: dagu start etl.yamlThe newest release is installed when the job runs. To pin a release for repeatable runs, set version to its tag from the releases.
| Name | Default | Description |
|---|---|---|
version |
latest |
Release tag to install (vX.Y.Z, the leading v optional), or latest. |
| Name | Description |
|---|---|
version |
The installed version, without the leading v. |
path |
The directory that holds the dagu binary. |
GitHub Actions shows a DAG run as one step. With a run key, each run also reports to Dagu Console:
- Every step of the DAG: its status, start and end times, and retries, and which steps failed.
- Failure alerts by email, chat, PagerDuty, or webhook, with acknowledgements and reminders.
- Lost runs: a run whose runner disappears mid-run opens an alert within minutes.
- Missed schedules: a deadline on the workflow alerts when a scheduled run has not succeeded by a set time.
- One run history: runs from every repository, next to your Dagu servers' runs, each linked to its GitHub Actions run.
The runner takes no license or server slot, and logs, outputs, and parameters are never sent. A workspace gets a free monthly allowance of job runs.
- In Console, open Servers and create a run key under Jobs.
- Add it to the repository as a secret named
DAGU_CLOUD_RUN_KEY. - Set it on the step that runs the DAG:
on:
schedule:
- cron: "0 3 * * *"
jobs:
etl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dagucloud/setup-dagu@v1
- run: dagu start etl.yaml
env:
DAGU_CLOUD_RUN_KEY: ${{ secrets.DAGU_CLOUD_RUN_KEY }}Job runs need Dagu v2.28 or later. See Job Runs for plans and limits.
- Linux: x64, ARM64, and ARM.
- macOS: x64 and ARM64.
- Windows: x64 and ARM64.
The action checks the download against the release's checksums.txt. A self-hosted runner keeps the binary in its tool cache, so each version is downloaded once per runner.