Skip to content

mise generate github-action

Generate a GitHub Action workflow file

This command generates a GitHub Action workflow file that runs a mise task like mise run ci on pull requests, tags, manual dispatch, and pushes to the current Git branch. Prints YAML by default; --write saves it under .github/workflows. Define the selected task and review the generated triggers before committing.

Flags

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

    Default: ci

  • -w --write — Write to .github/workflows/$name.yml

  • --name <NAME> — The name of the workflow to generate

    Default: ci

  • -h --help — Print help

Examples

Preview before writing the workflow

mise generate github-action --task=ci
mise generate github-action --write --task=ci
git add .github/workflows/ci.yml
MIT LicenseCopyright © 2026jdx.dev