diff --git a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml index 231c258..f02ae98 100644 --- a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml +++ b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml @@ -152,16 +152,36 @@ jobs: - run: echo "${{ steps.tofu-plan.outputs.plan-output }}" - - name: ANSI to HTML + # - name: ANSI to HTML + # id: ansi-to-html-plan + # uses: https://git.trez.wtf/Trez/actions-ansi-to-html@v1.0.3 + # env: + # ACTIONS_STEP_DEBUG: true + # with: + # input: ${{ steps.tofu-plan.outputs.plan-output }} + + - name: Convert ANSI color codes to HTNL id: ansi-to-html-plan - uses: https://git.trez.wtf/Trez/actions-ansi-to-html@v1.0.3 - env: - ACTIONS_STEP_DEBUG: true + uses: justinm/actions-ansi-to-html@v0 with: - input: ${{ steps.tofu-plan.outputs.plan-output }} + path: ./cloudflare.tfplan - run: echo "${{ steps.ansi-to-html-plan.outputs.contents }}" + - name: Comment PR with execution number + uses: thollander/actions-comment-pull-request@v3 + with: + message: | +
+ output.log + \`\`\` + ${{ steps.ansi-to-html-plan.outputs.contents }} + \`\`\` +
+ *${{ steps.resolve-comment-id.outputs.comment-id }}* + mode: upsert + pr-number: ${{ env.PR_NUMBER }} + - name: Tofu PR Commenter uses: https://git.trez.wtf/Trez/tf-pr-commenter@main env: