simpler logic

This commit is contained in:
Jun-te Kim 2026-02-10 16:53:02 +00:00
parent 5f7e85d3a9
commit 362120ba2c

View file

@ -99,11 +99,11 @@ jobs:
-out=lambdaplan
- 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 }}
run: terraform apply -auto-approve lambdaplan
- name: Terraform Destroy
if: inputs.terraform_destroy == 'true'
if: inputs.terraform_destroy == 'true' && inputs.terraform_apply != 'true'
working-directory: ${{ inputs.lambda_path }}
run: terraform destroy -auto-approve