Changing comment action.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user