docs/cli/generate/github-action.md
mise generate github-actionmise generate github-action [FLAGS]src/cli/generate/github_action.rsGenerate 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.
-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
Preview before writing the workflow
mise generate github-action --task=ci
mise generate github-action --write --task=ci
git add .github/workflows/ci.yml