File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 2626 uses : ./.github/workflows/environment.yml
2727 with :
2828 vaultID : " 1234-1"
29+ environment_override : " ${{ github.event.inputs.environment }}"
2930 test :
3031 name : Test
3132 needs : environment
Original file line number Diff line number Diff line change @@ -64,17 +64,12 @@ jobs:
6464 PUSH_EVENT=false
6565 MANUAL_EVENT=false
6666
67- echo $ENV_OVERRIDE
68- echo $GITHUB_EVENT
69- echo $CURRENT_BRANCH
70-
7167 # Check for environment override first
7268 if [ -n "$ENV_OVERRIDE" ]
7369 then
7470 ENVIRONMENT=$ENV_OVERRIDE
7571 MANUAL_EVENT=true
76- elif [[ "$GITHUB_EVENT" == "push" ]]
77- then
72+ else [[ "$GITHUB_EVENT" == "push" ]]
7873 if [[ "$CURRENT_BRANCH" =~ ^feature/patch-.*$ ]]; then
7974 ENVIRONMENT="dev"
8075 elif [[ "$CURRENT_BRANCH" =~ ^release/patch-.*$ ]]; then
8782 ENVIRONMENT=$(echo "$CURRENT_BRANCH" | sed -E 's#^(feature|release|dev|hotfix)/#\1-#')
8883 fi
8984 PUSH_EVENT=true
90- else
91- ENVIRONMENT="${{ inputs.environment }}"
92- MANUAL_EVENT=true
9385 fi
9486 echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT
9587
You can’t perform that action at this time.
0 commit comments