Skip to content

Commit

Permalink
ci: run alembic migration checker on release situations (#2585)
Browse files Browse the repository at this point in the history
Backported-from: main (24.09)
Backported-to: 23.09
Backport-of: 2585
  • Loading branch information
Yaminyam committed Jul 29, 2024
1 parent fbff6e7 commit aa8e9a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit aa8e9a6

Please sign in to comment.