File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 AWS_DEFAULT_REGION : " us-east-1"
8484
8585 - name : Copy lock file to S3 bucket for ${{ vars.ENV_NAME }}
86- if : ${{ inputs.plan_only == false }}
86+ if : ${{ ! inputs.plan_only }}
8787 run : aws s3 cp "deployment/.terraform.lock.hcl" "s3://${{ env.SETTINGS_BUCKET }}/destroy-plans/${{ vars.ENV_NAME }}.terraform.lock.hcl"
8888 env :
8989 AWS_ACCESS_KEY_ID : ${{ secrets.TF_AWS_ACCESS_KEY_ID }}
9595 needs : [destroy-plan]
9696 runs-on : ubuntu-latest
9797 environment : Development
98- if : ${{ inputs.plan_only == false && inputs.environment != 'Development' }}
9998 steps :
10099 - name : Wait for approval to destroy ${{ vars.ENV_NAME }}
100+ if : ${{ !inputs.plan_only }}
101101 uses : trstringer/manual-approval@v1
102102 with :
103103 secret : ${{ github.TOKEN }}
@@ -136,7 +136,7 @@ jobs:
136136 **⚠️ THIS ACTION CANNOT BE UNDONE ⚠️**
137137
138138 destroy-apply :
139- needs : [destroy-plan, manual-approval]
139+ needs : [manual-approval]
140140 runs-on : ubuntu-latest
141141 environment : Development
142142 if : ${{ inputs.plan_only == false && (inputs.environment == 'Development' || needs.manual-approval.result == 'success') }}
You can’t perform that action at this time.
0 commit comments