From 9c34818292709a728367e6b625d686429581aa9d Mon Sep 17 00:00:00 2001 From: Automatic Update Date: Tue, 3 Dec 2024 12:41:25 +0100 Subject: [PATCH] Add logic --- .github/workflows/aksbootstrap.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aksbootstrap.yaml b/.github/workflows/aksbootstrap.yaml index f3b1c5030..a977d51aa 100644 --- a/.github/workflows/aksbootstrap.yaml +++ b/.github/workflows/aksbootstrap.yaml @@ -107,6 +107,7 @@ jobs: --resource-group "common-${{ matrix.target.name }}" \ --ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null - name: Do a logic test - if: ${{ github.ref == 'refs/heads/master' }} && ${{ inputs.terraformapply == 'true' }} - run: echo "${{ inputs.terraformapply}} - ${{ github.ref }}" + if: steps.changes.outputs.changed == 'true' && ${{ github.ref == 'refs/heads/master' }} && ${{ inputs.terraformapply == 'true' }} + run: | + terraform -chdir="./terraform/subscriptions/${{ matrix.target.subscription }}/${{ matrix.target.name }}/pre-clusters" apply