From d551e98de50560663c8a2e82e5c16619b8eb70e5 Mon Sep 17 00:00:00 2001 From: sid palas Date: Thu, 27 May 2021 17:39:54 -0700 Subject: [PATCH] [bugfix] update condition to use event_name==release --- .github/workflows/terraform.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index eabdeab..6738c20 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -81,7 +81,7 @@ jobs: fi - name: Terraform Apply Global - if: github.event_name == 'push' + if: github.event_name == 'push' || github.event_name == 'release' working-directory: 07-managing-multiple-environments/file-structure/global run: | terraform init @@ -92,7 +92,7 @@ jobs: run: terraform apply -var db_pass=${{secrets.DB_PASS }} -auto-approve - name: Terraform Apply Production - if: steps.check-tag.outputs.environment == 'production' && github.event_name == 'push' + if: steps.check-tag.outputs.environment == 'production' && github.event_name == 'release' working-directory: 07-managing-multiple-environments/file-structure/production run: | terraform init