From 4a77ff56b8e604adc11b9432b5640d4a85f2c47d Mon Sep 17 00:00:00 2001 From: Mike Heft Date: Sun, 7 Jul 2024 09:24:07 -0600 Subject: [PATCH] change on req --- .github/workflows/terraform_and_deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform_and_deploy.yaml b/.github/workflows/terraform_and_deploy.yaml index a726424..a3eec61 100644 --- a/.github/workflows/terraform_and_deploy.yaml +++ b/.github/workflows/terraform_and_deploy.yaml @@ -1,7 +1,7 @@ name: Terraform and Deploy to Elastic Beanstalk on: - pull_request: + push: branches: - main @@ -9,7 +9,7 @@ jobs: terraform: name: Terraform Plan and Apply runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' && contains(github.event.head_commit.modified, 'terraform/') }} + if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.changed_files, 'terraform/') }} steps: - name: Checkout code