Skip to content

Commit 543640b

Browse files
committed
fix: k8s_apply environment
1 parent 5074c52 commit 543640b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/k8s_apply.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ permissions:
1212
jobs:
1313
k8-apply:
1414
name: 'K8: Apply'
15-
runs-on: [self-hosted, "${{ github.event.ref_name }}"]
16-
environment: ${{ github.ref_name }}
15+
runs-on: [self-hosted, "${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}"]
16+
environment: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
1717
env:
1818
KUBELOGIN_VERSION: "v0.0.25"
1919
KUBERNETES_CLUSTER_REPO_NAME: "${{ vars.KUBERNETES_CLUSTER_REPO_NAME }}"

0 commit comments

Comments
 (0)