action-runner #3

Merged
GW_MC merged 2 commits from action-runner into master 2025-11-15 12:15:52 +08:00
Showing only changes of commit f7d6ab9604 - Show all commits

View File

@@ -33,11 +33,11 @@ jobs:
run: | run: |
cd apps/cli cd apps/cli
cargo run -- db:migrate_and_generate --output-path ../../public/database/src/generated/entities 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: | 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." 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 exit 1
else else
echo "Generated code is up to date." echo "Generated code is up to date."