Changing comment action.

This commit is contained in:
2025-11-03 09:00:09 -05:00
parent 5b8cb00094
commit af5c5bad5b
+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