File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ permissions:
23
23
jobs :
24
24
k8-db-downgrade :
25
25
name : ' K8: Database Downgrade'
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 }}
28
28
env :
29
+ ENVIRONMENT_NAME : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
29
30
KUBELOGIN_VERSION : " v0.0.25"
30
31
KUBERNETES_CLUSTER_REPO_NAME : " ${{ vars.KUBERNETES_CLUSTER_REPO_NAME }}"
31
32
KUBERNETES_CLUSTER_NAME : " ${{ vars.KUBERNETES_CLUSTER_NAME }}"
69
70
shell : bash
70
71
run : |
71
72
bash cicd-deployment-scripts/k8s/db_downgrade.sh \
72
- -e ${{ github.ref_name }} \
73
+ -e ${{ env.ENVIRONMENT_NAME }} \
73
74
-d ${{ github.event.repository.name }} \
74
75
-p ${{ github.workspace }}/${{ env.KUBERNETES_CLUSTER_REPO_NAME }} \
75
76
-n ${{ env.KUBERNETES_NAMESPACE }} \
You can’t perform that action at this time.
0 commit comments