Skip to content

Commit 888a5a8

Browse files
committed
adjust workflow
1 parent 9f44ecd commit 888a5a8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test-migrations.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ jobs:
9595
PGPASSWORD: postgres
9696
run: |
9797
# Check if migrations applied successfully from binary output
98-
if grep -q "migrations applied successfully" statesman.log; then
98+
if grep -i "migrations applied successfully\|migrations already up to date" statesman.log; then
9999
echo "✅ Migrations applied successfully"
100100
else
101101
echo "❌ Migration success message not found in binary output"
102+
cat statesman.log
102103
exit 1
103104
fi
104105
@@ -185,10 +186,11 @@ jobs:
185186
working-directory: taco
186187
run: |
187188
# Check if migrations applied successfully from binary output
188-
if grep -q "migrations applied successfully" statesman.log; then
189+
if grep -i "migrations applied successfully\|migrations already up to date" statesman.log; then
189190
echo "✅ Migrations applied successfully"
190191
else
191192
echo "❌ Migration success message not found in binary output"
193+
cat statesman.log
192194
exit 1
193195
fi
194196
@@ -250,10 +252,11 @@ jobs:
250252
working-directory: taco
251253
run: |
252254
# Check if migrations applied successfully from binary output
253-
if grep -q "migrations applied successfully" statesman.log; then
255+
if grep -i "migrations applied successfully\|migrations already up to date" statesman.log; then
254256
echo "✅ Migrations applied successfully"
255257
else
256258
echo "❌ Migration success message not found in binary output"
259+
cat statesman.log
257260
exit 1
258261
fi
259262

0 commit comments

Comments
 (0)