Changing inputs for Tofu PR comments.
This commit is contained in:
@@ -115,7 +115,7 @@ jobs:
|
|||||||
chdir: cloudflare
|
chdir: cloudflare
|
||||||
|
|
||||||
- name: ANSI to HTML
|
- 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
|
uses: https://git.trez.wtf/Trez/actions-ansi-to-html@v1.0.1
|
||||||
with:
|
with:
|
||||||
input: ${{ steps.tofu-init.outputs.init-output }}
|
input: ${{ steps.tofu-init.outputs.init-output }}
|
||||||
@@ -129,7 +129,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
with:
|
with:
|
||||||
commenter_type: init
|
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_input: ${{ steps.tofu-init.outputs.init-output }}
|
||||||
commenter_exitcode: ${{ steps.tofu-init.outputs.exitcode }}
|
commenter_exitcode: ${{ steps.tofu-init.outputs.exitcode }}
|
||||||
git_token: ${{ secrets.BOT_GITEA_TOKEN }}
|
git_token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
@@ -145,6 +145,12 @@ jobs:
|
|||||||
chdir: cloudflare
|
chdir: cloudflare
|
||||||
out: cloudflare.tfplan
|
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
|
- name: Tofu PR Commenter
|
||||||
uses: https://git.trez.wtf/Trez/tf-pr-commenter@main
|
uses: https://git.trez.wtf/Trez/tf-pr-commenter@main
|
||||||
env:
|
env:
|
||||||
@@ -154,7 +160,8 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
with:
|
with:
|
||||||
commenter_type: plan
|
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 }}
|
commenter_exitcode: ${{ steps.tofu-plan.outputs.exitcode }}
|
||||||
git_token: ${{ secrets.BOT_GITEA_TOKEN }}
|
git_token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
pr_comments_url: ${{ env.PR_COMMENTS_URL }}
|
pr_comments_url: ${{ env.PR_COMMENTS_URL }}
|
||||||
|
|||||||
Reference in New Issue
Block a user