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 be228f9be4 - Show all commits
+19 -5
View File
@@ -121,12 +121,26 @@ jobs:
chdir: cloudflare
out: cloudflare.tfplan
- name: PR Comment
uses: alexnorell/tofu-pr-commenter@v2.0.0
- name: Comment Tofu Plan on PR
uses: marocchino/sticky-pull-request-comment@v2
with:
commenter_type: plan
commenter_input: ${{ steps.tofu_plan.outputs.plan-output }}
commenter_exitcode: ${{ steps.step_id.outputs.exitcode }}
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
header: "🧩 OpenTofu Plan — Cloudflare"
message: |
## 🧩 OpenTofu Plan Result
**Branch:** `${{ github.ref_name }}`
**Exit Code:** `${{ steps.tofu_plan.outputs.exitcode }}`
**Working Directory:** `cloudflare`
<details><summary>🪶 Click to expand full plan output</summary>
```
${{ steps.tofu_plan.outputs.plan-output }}
```
</details>
*(This plan was automatically generated by the workflow.)*
- name: Wait for manual approval
uses: trstringer/manual-approval@v1