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: |
|
||||
### ${{ forge.workflow }}
|
||||
|
||||
${FMT_EMOJI} OpenTofu Format and Style
|
||||
${INIT_EMOJI} OpenTofu Initialization
|
||||
${VALIDATE_EMOJI} OpenTofu Validation
|
||||
${FMT_OUTPUT}
|
||||
${INIT_OUTPUT}
|
||||
${VALIDATE_OUTPUT} OpenTofu Validation
|
||||
|
||||
<details><summary>Validation Output</summary>
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ jobs:
|
|||
|
||||
</details>
|
||||
|
||||
${PLAN_EMOJI} OpenTofu Plan 📖
|
||||
${PLAN_OUTPUT}
|
||||
|
||||
<details><summary>Show Plan</summary>
|
||||
|
||||
|
|
@ -95,14 +95,14 @@ jobs:
|
|||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
emoji() {
|
||||
[ "$1" = "success" ] && echo "✅" || echo "❌"
|
||||
}
|
||||
function emoji(status) {
|
||||
return (status === "success") ? "✅" : "❌"
|
||||
}
|
||||
|
||||
export FMT_EMOJI=$(emoji "${{ steps.fmt.outcome }}")
|
||||
export INIT_EMOJI=$(emoji "${{ steps.init.outcome }}")
|
||||
export VALIDATE_EMOJI=$(emoji "${{ steps.validate.outcome }}")
|
||||
export PLAN_EMOJI=$(emoji "${{ steps.plan.outcome }}")
|
||||
export FMT_OUTPUT="$(emoji("${{ steps.fmt.outcome }}")) OpenTofu Format and Style"
|
||||
export INIT_OUTPUT="$(emoji("${{ steps.init.outcome }}")) OpenTofu Initialization"
|
||||
export VALIDATE_OUTPUT="$(emoji("${{ steps.validate.outcome }}")) OpenTofu Validation"
|
||||
export PLAN_OUTPUT="$(emoji("${{ steps.plan.outcome }}")) OpenTofu Plan 📖"
|
||||
|
||||
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue