From be228f9be4f7521e3204eeba169e17862612fec9 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Mon, 3 Nov 2025 09:00:09 -0500 Subject: [PATCH] Changing comment action. --- .gitea/workflows/auto-pr-tofu-plan.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/auto-pr-tofu-plan.yml b/.gitea/workflows/auto-pr-tofu-plan.yml index fcc626e..13e2567 100644 --- a/.gitea/workflows/auto-pr-tofu-plan.yml +++ b/.gitea/workflows/auto-pr-tofu-plan.yml @@ -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` + +
🪶 Click to expand full plan output + + ``` + ${{ steps.tofu_plan.outputs.plan-output }} + ``` + +
+ + *(This plan was automatically generated by the workflow.)* - name: Wait for manual approval uses: trstringer/manual-approval@v1