File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : gh-aw lock check
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - " .github/workflows/*.md"
7+ - " .github/workflows/**/*.md"
8+ - " .github/workflows/*.lock.yml"
9+ - " .github/workflows/**/*.lock.yml"
10+ - " .github/workflows/gh-aw-lock-check.yml"
11+ push :
12+ branches :
13+ - main
14+ paths :
15+ - " .github/workflows/*.md"
16+ - " .github/workflows/**/*.md"
17+ - " .github/workflows/*.lock.yml"
18+ - " .github/workflows/**/*.lock.yml"
19+ - " .github/workflows/gh-aw-lock-check.yml"
20+ workflow_dispatch :
21+
22+ permissions :
23+ contents : read
24+
25+ jobs :
26+ verify :
27+ name : Verify gh-aw locks
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Check out repository
31+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
32+
33+ - name : Install gh-aw
34+ uses : github/gh-aw-actions/setup-cli@d3abfe96a194bce3a523ed2093ddedd5704cdf62 # v0.74.4
35+ with :
36+ version : v0.74.4
37+
38+ - name : Verify compiled workflows are current
39+ run : |
40+ gh aw compile --no-check-update
41+
42+ if [ -n "$(git status --porcelain -- .github/workflows)" ]; then
43+ echo "::error::gh-aw generated workflow files are stale. Run 'gh aw compile' and commit the result."
44+ git status --short -- .github/workflows
45+ git diff -- .github/workflows
46+ exit 1
47+ fi
You can’t perform that action at this time.
0 commit comments