Skip to content

Commit 9150e01

Browse files
committed
fix: skip running downgrade on cancelled
1 parent 74c18a3 commit 9150e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/k8s_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
call-k8-db-downgrade:
9191
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_db_downgrade.yml@dev
9292
needs: [call-az-acr-push-test, call-k8-db-upgrade, k8-test]
93-
if: ${{ always() && (needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV != needs.call-k8-db-upgrade.outputs.ALEMBIC_UPGRADED_REV) && (github.event.repository.name == 'refinery-gateway' || github.event.repository.name == 'gates-gateway' || github.event.repository.name == 'cognition-gateway' || github.event.repository.name == 'hosted-inference-api') }}
93+
if: ${{ always() && !cancelled() && (needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV != needs.call-k8-db-upgrade.outputs.ALEMBIC_UPGRADED_REV) && (github.event.repository.name == 'refinery-gateway' || github.event.repository.name == 'gates-gateway' || github.event.repository.name == 'cognition-gateway' || github.event.repository.name == 'hosted-inference-api') }}
9494
secrets: inherit
9595
with:
9696
alembic_downgrade_rev: ${{ needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV }}

0 commit comments

Comments
 (0)