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