...
This commit is contained in:
@@ -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 "<details><summary>🪶 Click to expand full plan output</summary>"
|
||||
echo ""
|
||||
echo '```hcl'
|
||||
cat tmp/tofu-plan-raw.txt
|
||||
cat cloudflare.tfplan # <-- read file directly, ACT-safe
|
||||
echo '```'
|
||||
echo ""
|
||||
echo "</details>"
|
||||
|
||||
Reference in New Issue
Block a user