From aa8e9a688712d7748390823705e02692807817d9 Mon Sep 17 00:00:00 2001 From: Sion Kang Date: Mon, 29 Jul 2024 15:56:00 +0900 Subject: [PATCH] ci: run alembic migration checker on release situations (#2585) Backported-from: main (24.09) Backported-to: 23.09 Backport-of: 2585 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'