fix: account for workdir in checks

This commit is contained in:
bo0tzz
2025-10-06 20:25:31 +02:00
parent 118f9a5812
commit a87ec69736
2 changed files with 6 additions and 6 deletions

View File

@@ -73,10 +73,10 @@ jobs:
- name: Verify files have not changed
run: |
if ! git diff --exit-code --quiet 'mobile/**/*.g.dart' 'mobile/**/*.gr.dart' 'mobile/**/*.drift.dart'; then
if ! git diff --exit-code --quiet '**/*.g.dart' '**/*.gr.dart' '**/*.drift.dart'; then
echo "ERROR: Generated files not up to date! Run 'make build' and 'make pigeon' inside the mobile directory"
echo "Changed files:"
git diff --name-only 'mobile/**/*.g.dart' 'mobile/**/*.gr.dart' 'mobile/**/*.drift.dart'
git diff --name-only '**/*.g.dart' '**/*.gr.dart' '**/*.drift.dart'
exit 1
fi

View File

@@ -605,10 +605,10 @@ jobs:
run: pnpm migrations:generate src/TestMigration
- name: Verify migration files have not changed
run: |
if ! git diff --exit-code --quiet server/src; then
if ! git diff --exit-code --quiet src; then
echo "ERROR: Generated migration files not up to date!"
echo "Changed files:"
git diff --name-only server/src
git diff --name-only src
cat ./src/*-TestMigration.ts
exit 1
fi
@@ -618,10 +618,10 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/immich
- name: Verify SQL files have not changed
run: |
if ! git diff --exit-code --quiet server/src/queries; then
if ! git diff --exit-code --quiet src/queries; then
echo "ERROR: Generated SQL files not up to date!"
echo "Changed files:"
git diff --name-only server/src/queries
git diff --name-only src/queries
git diff
exit 1
fi