From c4dd4c580ab13be56288cc08b6c11f002ff7c1a3 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Wed, 5 Nov 2025 08:28:04 -0500 Subject: [PATCH] Testing PR comment action. --- .../workflows/cloudflare-auto-pr-tofu-pipeline.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml index 8a667c7..71d16a6 100644 --- a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml +++ b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml @@ -130,14 +130,12 @@ jobs: chdir: cloudflare out: cloudflare.tfplan - - name: Convert Plan to JSON - run: | - cd cloudflare - tofu show cloudflare.tfplan > cloudflare_tf.txt - tofu show -json cloudflare.tfplan > cloudflare_tf.json - echo -e "Gitea: ${{ gitea.event_path }}\nGithub: ${{ github.event_path }}" - cat "${{ gitea.event_path }}" - cat /var/run/act/workflow/event.json + - name: Tofu PR Commenter + uses: alexnorell/tofu-pr-commenter@v2.0.0 + with: + commenter_type: plan + commenter_input: ${{ steps.tofu-plan.outputs.plan-output }} + commenter_exitcode: ${{ steps.tofu-plan.outputs.exitcode }} # - name: Tofu Report # uses: ahmadnassri/action-terraform-report@v4.1.14