From e4771555314be455593eb4d69c74064d23611c6b Mon Sep 17 00:00:00 2001 From: Rasmus Wejlgaard Date: Tue, 5 May 2026 13:32:06 +0100 Subject: [PATCH] remove refreshing state --- .github/workflows/validate-terraform.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-terraform.yml b/.github/workflows/validate-terraform.yml index 90a2001..28c6b1c 100644 --- a/.github/workflows/validate-terraform.yml +++ b/.github/workflows/validate-terraform.yml @@ -65,9 +65,10 @@ jobs: script: | const fs = require('fs'); const raw = fs.readFileSync('terraform/plan_output.txt', 'utf8'); - const truncated = raw.length > 65000 - ? raw.slice(0, 65000) + '\n\n...(output truncated)' - : raw; + const filtered = raw.split('\n').filter(l => !l.includes(': Refreshing state...')).join('\n'); + const truncated = filtered.length > 65000 + ? filtered.slice(0, 65000) + '\n\n...(output truncated)' + : filtered; const outcome = '${{ steps.plan.outcome }}'; const header = outcome === 'failure' ? '## Terraform Plan — FAILED' : '## Terraform Plan'; const body = `${header}\n\`\`\`\n${truncated}\n\`\`\``;