mise generate github-action
- Usage:
mise generate github-action [FLAGS] - Effect: modifies state
- Source code:
src/cli/generate/github_action.rs
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 triggeredDefault:
ci-w --write— Write to .github/workflows/$name.yml--name <NAME>— The name of the workflow to generateDefault:
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