Files
my-rook-config/hack/validate-codegen.sh
T
Sébastien Han af5a7f4df8 ci: run make codegen validation in workflow
Fail if a PR is submitted and has not run "make codegen"

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-25 19:19:15 +02:00

11 lines
221 B
Bash
Executable File

#!/bin/bash
set -ex
for file in $(git status --porcelain); do
if [[ "$file" =~ "zz" ]]; then
echo "found codegen files!"
echo "please run 'make codegen' and update your PR"
exit 1
fi
done