Adding approval and apply steps for testing. #7

Merged
Trez.One merged 38 commits from initial-workflows_2025-10-17T20-10-31 into main 2025-11-03 10:51:49 -05:00
Showing only changes of commit 9620979c8b - Show all commits
+9 -2
View File
@@ -118,9 +118,14 @@ jobs:
chdir: cloudflare
out: cloudflare.tfplan
- name: Save plan output to file (with collapsible Markdown)
- name: Save plan output to file (with collapsible Markdown, ACT-safe)
run: |
mkdir -p tmp
# Save raw plan output first
echo "${{ steps.tofu_plan.outputs.plan-output }}" > tmp/tofu-plan-raw.txt
# Build Markdown file safely
{
echo "## 🧩 OpenTofu Plan — Cloudflare"
echo "**Branch:** \`${{ github.ref_name }}\`"
@@ -130,15 +135,17 @@ jobs:
echo "<details><summary>🪶 Click to expand full plan output</summary>"
echo ""
echo '```hcl'
printf "%s\n" "${{ steps.tofu_plan.outputs.plan-output }}" # safer than 'cat <<<'
cat tmp/tofu-plan-raw.txt
echo '```'
echo ""
echo "</details>"
echo ""
echo "*(This plan was automatically generated by the workflow.)*"
} > tmp/tofu-plan.md
echo "Plan file saved: tmp/tofu-plan.md ($(wc -c < tmp/tofu-plan.md) bytes)"
- name: Comment full Tofu Plan on PR (safe)
uses: https://git.trez.wtf/Trez.One/git-auto-comment@main
with: