File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
scripts/infrastructure/terraform Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ permissions:
99
1010env :
1111 BASE_CACHE_SUFFIX : base
12- BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }}
12+ # BASE_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}
13+ BASE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
1314 BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
1415 CI_ROLE_NAME : ${{ secrets.CI_ROLE_NAME }}
1516 BRANCH_GITHUB_SHA_SHORT : $(echo ${{ github.event.pull_request.head.sha }} | cut -c 1-7)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function _terraform() {
1919 local terraform_role_name=" NHSDeploymentRole"
2020 lowercase_string=$( echo " $TERRAFORM_WORKSPACE " | tr ' [:upper:]' ' [:lower:]' )
2121
22- account=$( _get_account_name " $AWS_ACCOUNT " " $lowercase_string " ) || return 1
22+ account=$( _get_account_name " $AWS_ACCOUNT " ) || return 1
2323 workspace=$( _get_workspace_name " $account " " $lowercase_string " ) || return 1
2424 aws_account_id=$( _get_aws_account_id " $account " " $PROFILE_PREFIX " " $VERSION " ) || return 1
2525
Original file line number Diff line number Diff line change @@ -5,15 +5,9 @@ source ./scripts/infrastructure/terraform/terraform-constants.sh
55
66function _get_account_name() {
77 local account=$1
8- local workspace=$2
98
10- # if account not specified then infer it
119 if [[ -z " $account " ]]; then
12- if [[ " $workspace " = " ci-" * ]]; then
13- echo " ref" # ci builds go here
14- else
15- echo " dev" # personal builds co here
16- fi
10+ echo " dev"
1711 else
1812 echo " $account "
1913 fi
You can’t perform that action at this time.
0 commit comments