<!-- @generated by usage-cli from usage spec -->
# `mise generate github-action`

- **Usage:** `mise generate github-action [FLAGS]`
- **Effect:** modifies state
- **Source code:** [`src/cli/generate/github_action.rs`](https://github.com/jdx/mise/blob/main/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`
when you push changes to your repository.

## 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:

```
mise generate github-action --write --task=ci
git commit -m "feat: add new feature"
git push # runs `mise run ci` on GitHub
```
