File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,17 @@ run-name: Account-wide infra deployment to ${{ inputs.environment }} of ${{ inpu
1717on :
1818 push :
1919 branches :
20- - " NRL-1595**"
21-
22- # on:
23- # workflow_dispatch:
24- # inputs:
25- # environment:
26- # description: "Environment to deploy to"
27- # required: true
28- # default: "account-dev"
29- # type: environment
30- # branch_name:
31- # description: Branch to deploy
32- # required: true
20+ - NRL-1595**
21+ workflow_dispatch :
22+ inputs :
23+ environment :
24+ description : " Environment to deploy to"
25+ required : true
26+ default : " account-dev"
27+ type : environment
28+ branch_name :
29+ description : Branch to deploy
30+ required : true
3331
3432permissions :
3533 id-token : write
@@ -43,15 +41,15 @@ jobs:
4341 steps :
4442 - name : Validate environment
4543 env :
46- IS_VALID_ENV : startsWith( ${{inputs.environment}}, " account-")
44+ IS_VALID_ENV : ${{ startsWith( inputs.environment, ' account-') }}
4745 run : |
4846 echo $IS_VALID_ENV
4947 exit $IS_VALID_ENV == true
5048
5149 terraform-plan :
5250 name : Terraform Plan - ${{ inputs.environment }}
5351 environment : ${{ inputs.environment }}
54- if : startsWith(${{inputs.environment}}, "account-")
52+ needs : [check-selected-environment]
5553 runs-on : codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
5654
5755 steps :
You can’t perform that action at this time.
0 commit comments