forked from github/copilot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.03 KB
/
Copy pathverify-compiled.yml
File metadata and controls
36 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Verify compiled workflows
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/*.md"
- ".github/workflows/*.lock.yml"
permissions:
contents: read
jobs:
verify:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install gh-aw CLI
uses: github/gh-aw-actions/setup-cli@05205436a78512d71a2d842e46586ed05f4fa058 # v0.82.10
with:
version: v0.83.1
- name: Recompile workflows
# Full-repository compile so the diff check below covers all workflows.
run: gh aw compile
- name: Check for uncommitted changes
run: |
if [ -n "$(git diff)" ]; then
echo "::error::Lock files are out of date. Run 'gh aw compile' and commit the results."
echo ""
git diff --stat
echo ""
git diff -- '*.lock.yml'
exit 1
fi
echo "All lock files are up to date."