retry version check
All checks were successful
Basic test / Build and sanity check (pull_request) Successful in 1m1s

This commit is contained in:
Roy Crihfield 2024-07-01 14:11:38 +08:00
parent b5fafe4c34
commit 8f734aedbc

View File

@ -12,6 +12,11 @@ jobs:
- name: Run Docker containers
run: docker compose up -d
- name: Check migration version
timeout-minutes: 1
run: |
version=$(docker compose run --rm migrations version 2>&1 | tail -1 | awk '{print $(NF)}')
[[ $version = 21 ]]
while
version=$(docker compose run --rm migrations version 2>&1 | tail -1 | awk '{print $(NF)}')
[[ $version != 21 ]]; do
echo "Incorrect version: $version"
echo "Retrying..."
done