Skip to content

mise generate github-action ​

Generate a GitHub Actions workflow that runs a mise task

The workflow runs the task named by --task on pull requests, tags, manual dispatch, and pushes to the current branch. It prints YAML unless you pass --write, which saves .github/workflows/<NAME>.yml in the repository root and replaces an existing file. Define the task and review the triggers before committing the workflow.

Flags ​

  • -t --task <TASK> — The task to run when the workflow is triggered

    Default: ci

  • -w --write — Write the workflow to .github/workflows/<NAME>.yml instead of printing it

  • --name <NAME> — Name of the workflow and its file

    Default: ci

  • -h --help — Print help

Examples ​

Print a workflow that runs the ci task

mise generate github-action

Save it as .github/workflows/ci.yml

mise generate github-action --write

Save a workflow that runs the lint task as .github/workflows/lint.yml

mise generate github-action --task lint --name lint --write
MIT LicenseCopyright © 2026jdx.dev