Update verify generated code to watch only generated folders
Some checks failed
Test / verify-generated-code (pull_request) Failing after 7m55s
Test / test (pull_request) Successful in 7m59s
Test / lint (pull_request) Failing after 7m22s

This commit is contained in:
GW_MC
2025-11-15 11:41:52 +08:00
parent 467e6bfcf5
commit 17f7e06e8a

View File

@@ -33,11 +33,11 @@ jobs:
run: |
cd apps/cli
cargo run -- db:migrate_and_generate --output-path ../../public/database/src/generated/entities
- name: Check for uncommitted changes
- name: Check for uncommitted changes in /generated/
run: |
if [[ -n $(git status --porcelain) ]]; then
if [[ -n $(git status --porcelain | grep '^ M .*\/generated\/') ]]; then
echo "Generated code is not up to date. Please run the code generation locally and commit the changes."
git status --porcelain
git status --porcelain | grep '^ M .*\/generated\/'
exit 1
else
echo "Generated code is up to date."