From 810fffef36d3994541979e10a292d36600d74959 Mon Sep 17 00:00:00 2001 From: Connor O'Kane Date: Fri, 30 Aug 2024 14:25:57 +0100 Subject: [PATCH] testing apply of rulesets --- .github/workflows/terraform.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml index 345b946d..02f5f56d 100644 --- a/.github/workflows/terraform.yaml +++ b/.github/workflows/terraform.yaml @@ -4,6 +4,10 @@ on: pull_request: branches: - main + + push: + branches: + - main workflow_dispatch: permissions: @@ -56,7 +60,7 @@ jobs: - name: Terraform Apply working-directory: components - if: github.event.pull_request.merged == true + if: github.event_name == 'push' && github.ref == 'refs/heads/main' env: ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} ARM_SUBSCRIPTION_ID: ${{ secrets.DCD_CFT_SANDBOX_SUBSCRIPTION }}