mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
simpler logic
This commit is contained in:
parent
5f7e85d3a9
commit
362120ba2c
1 changed files with 2 additions and 2 deletions
4
.github/workflows/_deploy_lambda.yml
vendored
4
.github/workflows/_deploy_lambda.yml
vendored
|
|
@ -99,11 +99,11 @@ jobs:
|
||||||
-out=lambdaplan
|
-out=lambdaplan
|
||||||
|
|
||||||
- name: Terraform Apply
|
- name: Terraform Apply
|
||||||
if: (inputs.terraform_apply == 'true' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && inputs.terraform_destroy != 'true'
|
if: inputs.terraform_apply == 'true' && inputs.terraform_destroy != 'true'
|
||||||
working-directory: ${{ inputs.lambda_path }}
|
working-directory: ${{ inputs.lambda_path }}
|
||||||
run: terraform apply -auto-approve lambdaplan
|
run: terraform apply -auto-approve lambdaplan
|
||||||
|
|
||||||
- name: Terraform Destroy
|
- name: Terraform Destroy
|
||||||
if: inputs.terraform_destroy == 'true'
|
if: inputs.terraform_destroy == 'true' && inputs.terraform_apply != 'true'
|
||||||
working-directory: ${{ inputs.lambda_path }}
|
working-directory: ${{ inputs.lambda_path }}
|
||||||
run: terraform destroy -auto-approve
|
run: terraform destroy -auto-approve
|
||||||
Loading…
Add table
Reference in a new issue