bash is hard
Some checks failed
Tofu Plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 20s
Some checks failed
Tofu Plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 20s
This commit is contained in:
parent
5b92fddcd3
commit
bfc43b632d
1 changed files with 7 additions and 7 deletions
|
|
@ -95,14 +95,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
function emoji(status) {
|
emoji() {
|
||||||
return (status === "success") ? "✅" : "❌"
|
[ "$1" = "success" ] && echo "✅" || echo "❌"
|
||||||
}
|
}
|
||||||
|
|
||||||
export FMT_OUTPUT="$(emoji("${{ steps.fmt.outcome }}")) OpenTofu Format and Style"
|
export FMT_OUTPUT="$(emoji() "${{ steps.fmt.outcome }}") OpenTofu Format and Style"
|
||||||
export INIT_OUTPUT="$(emoji("${{ steps.init.outcome }}")) OpenTofu Initialization"
|
export INIT_OUTPUT="$(emoji() "${{ steps.init.outcome }}") OpenTofu Initialization"
|
||||||
export VALIDATE_OUTPUT="$(emoji("${{ steps.validate.outcome }}")) OpenTofu Validation"
|
export VALIDATE_OUTPUT="$(emoji() "${{ steps.validate.outcome }}") OpenTofu Validation"
|
||||||
export PLAN_OUTPUT="$(emoji("${{ steps.plan.outcome }}")) OpenTofu Plan 📖"
|
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