Skip to content

Commit 5c8c71e

Browse files
committed
fix: update environment name in db migrate
1 parent 24a6fae commit 5c8c71e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/k8s_db_migrate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ permissions:
2323
jobs:
2424
k8-db-migrate:
2525
name: 'K8: Database Migrate'
26-
runs-on: [self-hosted, "${{ github.ref_name }}"]
27-
environment: ${{ github.ref_name }}
26+
runs-on: [self-hosted, "${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}"]
27+
environment: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
2828
env:
2929
KUBELOGIN_VERSION: "v0.0.25"
3030
KUBERNETES_CLUSTER_REPO_NAME: "${{ vars.KUBERNETES_CLUSTER_REPO_NAME }}"

0 commit comments

Comments
 (0)