Skip to content

About

GitHub Action that installs a Dagu release on the runner and adds it to PATH

Resources

Stars

0 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-dagu

A GitHub Action that installs a Dagu release on the runner and adds dagu to PATH.

Usage

steps:
  - uses: actions/checkout@v7
  - uses: dagucloud/setup-dagu@v1
  - run: dagu start etl.yaml

The newest release is installed when the job runs. To pin a release for repeatable runs, set version to its tag from the releases.

Inputs

Name Default Description
version latest Release tag to install (vX.Y.Z, the leading v optional), or latest.

Outputs

Name Description
version The installed version, without the leading v.
path The directory that holds the dagu binary.

Report Runs to Dagu Console

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.

  1. In Console, open Servers and create a run key under Jobs.
  2. Add it to the repository as a secret named DAGU_CLOUD_RUN_KEY.
  3. 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.

Runners

  • 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.

About

GitHub Action that installs a Dagu release on the runner and adds it to PATH

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages