Changing comment action.
This commit is contained in:
@@ -121,12 +121,26 @@ jobs:
|
|||||||
chdir: cloudflare
|
chdir: cloudflare
|
||||||
out: cloudflare.tfplan
|
out: cloudflare.tfplan
|
||||||
|
|
||||||
- name: PR Comment
|
- name: Comment Tofu Plan on PR
|
||||||
uses: alexnorell/tofu-pr-commenter@v2.0.0
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
commenter_type: plan
|
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
commenter_input: ${{ steps.tofu_plan.outputs.plan-output }}
|
header: "🧩 OpenTofu Plan — Cloudflare"
|
||||||
commenter_exitcode: ${{ steps.step_id.outputs.exitcode }}
|
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
|
- name: Wait for manual approval
|
||||||
uses: trstringer/manual-approval@v1
|
uses: trstringer/manual-approval@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user