Skip to content

Commit 7a0323d

Browse files
theletterfclaude
andcommitted
Add pre-commit hook to compile gh-aw workflows
Runs `gh aw compile` locally when workflow source files change, so lock file drift is caught before it reaches CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 797dc23 commit 7a0323d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ repos:
2323
hooks:
2424
- id: actionlint
2525
exclude: '\.lock\.yml$'
26+
27+
- repo: local
28+
hooks:
29+
- id: compile-workflows
30+
name: compile gh-aw workflows
31+
language: system
32+
entry: gh aw compile
33+
files: '\.github/workflows/gh-aw-.*\.md$|\.github/workflows/gh-aw-fragments/'
34+
pass_filenames: false

0 commit comments

Comments
 (0)