Back to Mise

`mise generate github-action`

docs/cli/generate/github-action.md

2026.9.21.3 KB
Original Source
<!-- @generated by usage-cli from usage spec -->

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
<!-- generated reference navigation -->