From 004f19772d58110a20751df6bd3e59e62fbb76b1 Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Thu, 10 Oct 2024 15:16:21 -0700 Subject: [PATCH] Update terraform_plan.yaml --- .github/workflows/terraform_plan.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index 39f4486..f12b97e 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -36,11 +36,8 @@ jobs: persist-credentials: false - name: git show - run: git show + run: echo "commit_sha=$(git show | grep commit | head -1 | awk '{ print $NF }')" >> $GITHUB_ENV - - name: Checkout Status - run: echo "Checked out ${{ github.repository }} @ ${{ github.head_ref }}" - - name: AWS Auth id: aws_auth uses: CSVD/aws-auth@main @@ -56,7 +53,8 @@ jobs: uses: CSVD/terraform-init@main id: terraform_init with: - commit_sha: ${{ steps.checkout.outputs.commit }} + commit_sha: ${{ env.commit_sha }} + checkout: false terraform_version: "1.9.1" workspace: ${{ vars.terraform_workspace }} setup_terraform: true