diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index b4b2de4..264a87d 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -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 }}