...
This commit is contained in:
@@ -86,7 +86,6 @@ jobs:
|
|||||||
- name: Export env vars from Vault .env
|
- name: Export env vars from Vault .env
|
||||||
id: env-vault-vars
|
id: env-vault-vars
|
||||||
run: |
|
run: |
|
||||||
echo "🧩 Cleaning and loading cloudflare/.env..."
|
|
||||||
sed -i 's/[\"'\'']//g' cloudflare/.env
|
sed -i 's/[\"'\'']//g' cloudflare/.env
|
||||||
set -a
|
set -a
|
||||||
source cloudflare/.env
|
source cloudflare/.env
|
||||||
@@ -114,14 +113,9 @@ jobs:
|
|||||||
chdir: cloudflare
|
chdir: cloudflare
|
||||||
out: cloudflare.tfplan
|
out: cloudflare.tfplan
|
||||||
|
|
||||||
- name: Save raw plan output to file (ACT-safe)
|
- name: Build Markdown PR comment from plan file
|
||||||
run: |
|
run: |
|
||||||
mkdir -p tmp
|
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 "## 🧩 OpenTofu Plan — Cloudflare"
|
||||||
echo "**Branch:** \`${{ github.ref_name }}\`"
|
echo "**Branch:** \`${{ github.ref_name }}\`"
|
||||||
@@ -131,7 +125,7 @@ jobs:
|
|||||||
echo "<details><summary>🪶 Click to expand full plan output</summary>"
|
echo "<details><summary>🪶 Click to expand full plan output</summary>"
|
||||||
echo ""
|
echo ""
|
||||||
echo '```hcl'
|
echo '```hcl'
|
||||||
cat tmp/tofu-plan-raw.txt
|
cat cloudflare.tfplan # <-- read file directly, ACT-safe
|
||||||
echo '```'
|
echo '```'
|
||||||
echo ""
|
echo ""
|
||||||
echo "</details>"
|
echo "</details>"
|
||||||
|
|||||||
Reference in New Issue
Block a user