From 1fffd1b5d14078a10af4f6da1b424effcaf4efef Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Tue, 11 Nov 2025 06:58:33 -0300 Subject: [PATCH] feat: tests plan on other branches --- .github/workflows/terraform.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index b9f9fa5..cca934d 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -2,7 +2,6 @@ name: 'Terraform' on: push: - branches: [ "main" ] jobs: terraform: @@ -36,11 +35,10 @@ jobs: # On push to "main", build or change infrastructure according to Terraform configuration files # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Apply - if: github.event_name == 'push' + if: github.ref_name == 'main' run: tofu apply -auto-approve -input=false - name: Trigger Cluster Deployment - if: github.event_name == 'push' uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.ACTIONS_KEY }}