Skip to content

Commit 156f085

Browse files
theletterfclaude
andauthored
Remove compile-check workflow (#87)
* Remove compile-check workflow The lock file drift check creates more friction than it prevents — particularly for Dependabot PRs, which always fail CI because Dependabot can't run `make compile`. Trust contributors to recompile. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 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> * Install gh-aw in pre-commit CI workflow So the compile-workflows hook runs in CI too, replacing the dedicated compile-check workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4cbb35d commit 156f085

3 files changed

Lines changed: 13 additions & 40 deletions

File tree

.github/workflows/compile-check.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ jobs:
1717
- uses: actions/setup-python@v6
1818
with:
1919
python-version: "3.x"
20+
- name: Install gh-aw
21+
run: gh extension install github/gh-aw
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024
- uses: pre-commit/action@v3.0.1

.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)