You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/setup/cli.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,29 @@ Creates a markdown workflow file in `.github/workflows/` with template frontmatt
126
126
127
127
### Building
128
128
129
+
#### `fix`
130
+
131
+
Automatically fix deprecated workflow fields using codemods. Applies migrations for field renames and API changes to keep workflows up-to-date with the latest schema.
132
+
133
+
```bash wrap
134
+
gh aw fix # Check all workflows (dry-run)
135
+
gh aw fix --write # Fix all workflows
136
+
gh aw fix my-workflow # Check specific workflow (dry-run)
137
+
gh aw fix my-workflow --write # Fix specific workflow
138
+
gh aw fix --list-codemods # List available codemods with versions
139
+
```
140
+
141
+
**Options:**`--write` (apply changes to files, defaults to dry-run), `--list-codemods` (show available fixes with version information)
The command runs in dry-run mode by default, showing what would be changed without modifying files. Use `--write` to apply the fixes. All changes preserve formatting, comments, and indentation.
149
+
150
+
**Integration:** The `fix` command is automatically run before compilation when using `gh aw compile --fix`, and is integrated into the build process via `make fix`.
151
+
129
152
#### `compile`
130
153
131
154
Compile Markdown workflows to GitHub Actions YAML. Remote imports are automatically cached in `.github/aw/imports/` for offline compilation.
@@ -136,13 +159,14 @@ gh aw compile my-workflow # Compile specific workflow
0 commit comments