Skip to content

Commit a1c184b

Browse files
committed
test
1 parent 1b5651e commit a1c184b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/codeDeployment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
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

.github/workflows/environment.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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
@@ -87,9 +82,6 @@ jobs:
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

0 commit comments

Comments
 (0)