From 2b5f6d25cf542955f07b4bedc72ba255be42dc31 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Sat, 20 Jan 2024 16:17:26 +0100 Subject: [PATCH] Fix cli args for show command --- .github/workflows/terraform.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml index 70a79c7..240a895 100644 --- a/.github/workflows/terraform.yaml +++ b/.github/workflows/terraform.yaml @@ -42,6 +42,7 @@ jobs: AWS_DEFAULT_REGION: us-east-1 AWS_ENDPOINT_URL: https://s3.us-east-005.backblazeb2.com S3_BUCKET: terraform-state-backup + TF_CLI_ARGS: "" run: | terraform show -json > state.json aws s3 cp state.json s3://${S3_BUCKET}/${{ github.repository }}/$(date +%s).json @@ -53,7 +54,11 @@ jobs: for file in ${DELETE_FILES}; do aws s3 rm s3://${S3_BUCKET}/$file; done - run: terraform show -json tfplan > tfplan.json + env: + TF_CLI_ARGS: "" - run: terraform show -no-color tfplan > summary.txt + env: + TF_CLI_ARGS: "" - name: Create status check with details uses: actions/github-script@v7