fix: use double quotes for MYSQL_PASS variable expansion in mysql exec
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 23s
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 23s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
0c0147f12a
commit
12d84b00ec
@ -40,7 +40,7 @@ jobs:
|
||||
run: |
|
||||
set -x
|
||||
MYSQL_PASS=$(docker exec mysql-zhixi printenv MYSQL_PASSWORD 2>/dev/null || echo "Zhixi@2026!App")
|
||||
MYSQL_EXEC="docker exec mysql-zhixi mysql -u zhixi_user -p'$MYSQL_PASS' zhixi"
|
||||
MYSQL_EXEC="docker exec mysql-zhixi mysql -u zhixi_user -p${MYSQL_PASS} zhixi"
|
||||
|
||||
echo "=== Checking for failed migrations ==="
|
||||
$MYSQL_EXEC -e "SELECT migration_name, applied_steps_count, rolled_back_at, SUBSTRING(logs, 1, 120) as logs_preview FROM _prisma_migrations ORDER BY started_at DESC LIMIT 5;" 2>/dev/null || echo "(could not query _prisma_migrations)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user