From 3d7a1347a88ee2253fdadcdfa18577ba6666ddbf Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Sat, 27 Sep 2025 13:29:00 +1000 Subject: [PATCH] chore: add opentofu action --- .github/workflows/infra-build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/infra-build.yml b/.github/workflows/infra-build.yml index ec43b28..66ecd04 100644 --- a/.github/workflows/infra-build.yml +++ b/.github/workflows/infra-build.yml @@ -19,12 +19,6 @@ jobs: with: fetch-depth: 0 - - name: Setup Opentofu CLI - run: | - curl -L https://github.com/opentofu/opentofu/releases/latest/download/opentofu-linux-amd64 -o /usr/local/bin/tofu - chmod +x /usr/local/bin/tofu - tofu version - - name: Generate Dynamic Vars (Secrets) run: | cat < terraform.auto.tfvars @@ -36,6 +30,9 @@ jobs: ssh_key = "${{ secrets.SSH_PRIVATE_KEY }}" passphrase = "${{ secrets.SSH_PASSPHRASE }}" EOF + + - name: Setup Opentofu + uses: opentofu/setup-opentofu@v1 - name: Opentofu Init run: tofu init