From 2881ecd2879d637ad9f5b544229a69521a5834d2 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Mon, 9 Feb 2026 12:35:18 +0000 Subject: [PATCH] terraform apply based on branch name --- .github/workflows/_deploy_lambda.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_deploy_lambda.yml b/.github/workflows/_deploy_lambda.yml index b3ca4583..9bd686aa 100644 --- a/.github/workflows/_deploy_lambda.yml +++ b/.github/workflows/_deploy_lambda.yml @@ -27,6 +27,7 @@ on: required: false type: string default: 'false' + # can only be 'true' or 'false' secrets: AWS_ACCESS_KEY_ID: @@ -92,6 +93,6 @@ jobs: -out=lambdaplan - name: Terraform Apply - if: inputs.terraform_apply == 'true' || inputs.stage == 'dev' || inputs.stage == 'main' + if: inputs.terraform_apply == 'true' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' working-directory: ${{ inputs.lambda_path }} run: terraform apply -auto-approve lambdaplan