Skip to content

Commit 72406af

Browse files
committed
Report when the repo is unclean.
1 parent 14de198 commit 72406af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ jobs:
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
run: |
6161
make generate manifests
62-
test -z "$(git status --porcelain)"
62+
if [ -n "$(git status --porcelain)" ]; then
63+
echo "Generated manifests are out of date. Please run 'make generate manifests' and commit the changes."
64+
exit 1
65+
fi
6366
6467
generate-metadata-file:
6568
needs: get-product-version

0 commit comments

Comments
 (0)