mirror of
https://github.com/imjasonh/snoop
synced 2026-07-13 19:07:43 +00:00
fail when codegen mismatches
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
1fe85ea6e8
commit
f40990236b
1 changed files with 3 additions and 1 deletions
4
.github/workflows/codegen.yaml
vendored
4
.github/workflows/codegen.yaml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
|||
permissions: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
codegen:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
@ -34,6 +34,8 @@ jobs:
|
|||
git add .
|
||||
git commit -m "Update generated code"
|
||||
git push
|
||||
|
||||
exit 1 # Workflow should fail, so the PR author reviews the changes
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue