Skip to content

Commit

Permalink
[bugfix] update condition to use event_name==release
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpalas committed May 28, 2021
1 parent 4199e89 commit d551e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d551e98

Please sign in to comment.