diff --git a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml index ee5ae75..0d3cc1b 100644 --- a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml +++ b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml @@ -115,7 +115,7 @@ jobs: chdir: cloudflare - name: ANSI to HTML - id: ansi-to-html + id: ansi-to-html-init uses: https://git.trez.wtf/Trez/actions-ansi-to-html@v1.0.1 with: input: ${{ steps.tofu-init.outputs.init-output }} @@ -129,7 +129,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }} with: commenter_type: init - commenter_input: ${{ steps.ansi-to-html.outputs.contents }} + commenter_input: ${{ steps.ansi-to-html-init.outputs.contents }} # commenter_input: ${{ steps.tofu-init.outputs.init-output }} commenter_exitcode: ${{ steps.tofu-init.outputs.exitcode }} git_token: ${{ secrets.BOT_GITEA_TOKEN }} @@ -145,6 +145,12 @@ jobs: chdir: cloudflare out: cloudflare.tfplan + - name: ANSI to HTML + id: ansi-to-html-plan + uses: https://git.trez.wtf/Trez/actions-ansi-to-html@v1.0.1 + with: + input: ${{ steps.tofu-plan.outputs.plan-output }} + - name: Tofu PR Commenter uses: https://git.trez.wtf/Trez/tf-pr-commenter@main env: @@ -154,7 +160,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }} with: commenter_type: plan - commenter_input: ${{ steps.tofu-plan.outputs.plan-output }} + commenter_input: ${{ steps.ansi-to-html-plan.outputs.contents }} + # commenter_input: ${{ steps.tofu-plan.outputs.plan-output }} commenter_exitcode: ${{ steps.tofu-plan.outputs.exitcode }} git_token: ${{ secrets.BOT_GITEA_TOKEN }} pr_comments_url: ${{ env.PR_COMMENTS_URL }}