Skip to content

Commit

Permalink
gh-actions: execute terraform apply only on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
furiousme committed Oct 20, 2024
1 parent 6c73a7b commit 7962d2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
terraform-plan:
runs-on: ubuntu-latest
needs: terraform-check
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
TF_VAR_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
TF_VAR_gh_username: ${{ secrets.TF_VAR_GH_USERNAME }}
Expand Down

0 comments on commit 7962d2f

Please sign in to comment.