fix migration version
All checks were successful
Basic test / Build and sanity check (pull_request) Successful in 48s

This commit is contained in:
Roy Crihfield 2024-07-25 20:04:48 +08:00
parent 375c08de68
commit c36d2907c1

View File

@ -14,9 +14,10 @@ jobs:
- name: Check migration version
timeout-minutes: 1
run: |
MIGRATION_VERSION=$(ls db/migrations/*.sql | wc -l)
while
version=$(docker compose run --rm migrations version 2>&1 | tail -1 | awk '{print $(NF)}')
[[ $version != 21 ]]; do
[[ $version != $MIGRATION_VERSION ]]; do
echo "Incorrect version: $version"
echo "Retrying..."
done