Skip to content

Commit 3a64ba4

Browse files
committed
better ci
1 parent 1d2ed6c commit 3a64ba4

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/check.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,18 @@ jobs:
99
uses: actions/checkout@v4
1010

1111
- run: make
12+
13+
- name: check for uncommitted changes
14+
run: |
15+
if [[ -n $(git status --porcelain) ]]; then
16+
echo "Error: Generated files are out of date!"
17+
echo "The following files have changes:"
18+
git status --porcelain
19+
echo ""
20+
echo "Please run 'make' locally and commit the updated files."
21+
exit 1
22+
else
23+
echo "Success: All generated files are up to date."
24+
fi
25+
1226
- run: make clean

0 commit comments

Comments
 (0)