outputs
Some checks failed
Tofu Plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 23s
Some checks failed
Tofu Plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 23s
This commit is contained in:
parent
3e181d0ca3
commit
5b92fddcd3
1 changed files with 11 additions and 11 deletions
|
|
@ -71,9 +71,9 @@ jobs:
|
||||||
COMMENT_BODY: |
|
COMMENT_BODY: |
|
||||||
### ${{ forge.workflow }}
|
### ${{ forge.workflow }}
|
||||||
|
|
||||||
${FMT_EMOJI} OpenTofu Format and Style
|
${FMT_OUTPUT}
|
||||||
${INIT_EMOJI} OpenTofu Initialization
|
${INIT_OUTPUT}
|
||||||
${VALIDATE_EMOJI} OpenTofu Validation
|
${VALIDATE_OUTPUT} OpenTofu Validation
|
||||||
|
|
||||||
<details><summary>Validation Output</summary>
|
<details><summary>Validation Output</summary>
|
||||||
|
|
||||||
|
|
@ -83,7 +83,7 @@ jobs:
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
${PLAN_EMOJI} OpenTofu Plan 📖
|
${PLAN_OUTPUT}
|
||||||
|
|
||||||
<details><summary>Show Plan</summary>
|
<details><summary>Show Plan</summary>
|
||||||
|
|
||||||
|
|
@ -95,14 +95,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
emoji() {
|
function emoji(status) {
|
||||||
[ "$1" = "success" ] && echo "✅" || echo "❌"
|
return (status === "success") ? "✅" : "❌"
|
||||||
}
|
}
|
||||||
|
|
||||||
export FMT_EMOJI=$(emoji "${{ steps.fmt.outcome }}")
|
export FMT_OUTPUT="$(emoji("${{ steps.fmt.outcome }}")) OpenTofu Format and Style"
|
||||||
export INIT_EMOJI=$(emoji "${{ steps.init.outcome }}")
|
export INIT_OUTPUT="$(emoji("${{ steps.init.outcome }}")) OpenTofu Initialization"
|
||||||
export VALIDATE_EMOJI=$(emoji "${{ steps.validate.outcome }}")
|
export VALIDATE_OUTPUT="$(emoji("${{ steps.validate.outcome }}")) OpenTofu Validation"
|
||||||
export PLAN_EMOJI=$(emoji "${{ steps.plan.outcome }}")
|
export PLAN_OUTPUT="$(emoji("${{ steps.plan.outcome }}")) OpenTofu Plan 📖"
|
||||||
|
|
||||||
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue