diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e2df57116..5fb0ceb98a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,7 +115,10 @@ jobs: check-alembic-migrations: if: | - contains(github.event.pull_request.labels.*.name, 'require:db-migration') + ( + contains(github.event.pull_request.labels.*.name, 'require:db-migration') + || (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) + ) && !contains(fromJSON('["flow:merge-queue", "flow:hotfix"]'), github.event.label.name) && github.event.pull_request.merged == false && needs.optimize-ci.outputs.skip == 'false'