File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -150,15 +150,17 @@ jobs:
150150 PGUSER : supabase_admin
151151 PGPASSWORD : ${{ env.POSTGRES_PASSWORD }}
152152
153- # - name: Update Dockerfile.dbmate version
154- # run: |
155- # sed -i 's/%VERSION%/${{ env.PGMAJOR }}/g' migrations/Dockerfile.dbmate
156-
157- # - name: verify schema.sql is committed
158- # run: |
159- # docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
160- # if ! git diff --exit-code --quiet migrations/schema.sql; then
161- # echo "Detected changes in schema.sql:"
162- # git diff
163- # exit 1
164- # fi
153+ - name : Update Dockerfile.dbmate version
154+ if : env.PGMAJOR == '15'
155+ run : |
156+ sed -i 's/%VERSION%/${{ env.PGMAJOR }}/g' migrations/Dockerfile.dbmate
157+
158+ - name : verify schema.sql is committed
159+ if : env.PGMAJOR == '15'
160+ run : |
161+ docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
162+ if ! git diff --exit-code --quiet migrations/schema.sql; then
163+ echo "Detected changes in schema.sql:"
164+ git diff
165+ exit 1
166+ fi
You can’t perform that action at this time.
0 commit comments