diff --git a/.gitea/workflows/auto-pr-tofu-plan.yml b/.gitea/workflows/auto-pr-tofu-plan.yml index 6d5f1eb..00b966e 100644 --- a/.gitea/workflows/auto-pr-tofu-plan.yml +++ b/.gitea/workflows/auto-pr-tofu-plan.yml @@ -86,7 +86,6 @@ jobs: - name: Export env vars from Vault .env id: env-vault-vars run: | - echo "🧩 Cleaning and loading cloudflare/.env..." sed -i 's/[\"'\'']//g' cloudflare/.env set -a source cloudflare/.env @@ -114,14 +113,9 @@ jobs: chdir: cloudflare out: cloudflare.tfplan - - name: Save raw plan output to file (ACT-safe) + - name: Build Markdown PR comment from plan file run: | mkdir -p tmp - echo "${{ steps.tofu_plan.outputs.plan-output }}" > tmp/tofu-plan-raw.txt - echo "Saved raw plan: tmp/tofu-plan-raw.txt ($(wc -c < tmp/tofu-plan-raw.txt) bytes)" - - - name: Build Markdown PR comment (ACT-safe) - run: | { echo "## 🧩 OpenTofu Plan — Cloudflare" echo "**Branch:** \`${{ github.ref_name }}\`" @@ -131,7 +125,7 @@ jobs: echo "
🪶 Click to expand full plan output" echo "" echo '```hcl' - cat tmp/tofu-plan-raw.txt + cat cloudflare.tfplan # <-- read file directly, ACT-safe echo '```' echo "" echo "
"