From b67dc7467c54cfb5272f271be1de3252eb158c43 Mon Sep 17 00:00:00 2001 From: "David R. Bild" Date: Fri, 22 Dec 2023 11:06:27 -0600 Subject: [PATCH] workflow: only run resourcely-action on pull requests --- .github/workflows/terraform.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 350609e..854d594 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -45,12 +45,13 @@ jobs: name: plan-file path: plan.json - # - name: Terraform Apply - # if: github.ref == 'refs/heads/main' && github.event_name == 'push' - # run: terraform apply -auto-approve -input=false + - name: Terraform Apply + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + run: terraform apply -auto-approve -input=false resourcely-ci: needs: terraform + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - name: Checkout