Skip to content

Commit

Permalink
gh-actions/envoy/run/summary: Minor fixes for jq templates (#1185)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Dec 3, 2023
1 parent 268f086 commit 37307c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gh-actions/envoy/run/summary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
template:
type: string
default: |
## \($context.config.envoy.icon) \($context.config.check.name): \($context.target)
## \($context.config.envoy.icon) \($context.check.name): \($context.target)
\($runSummary)
Expand Down Expand Up @@ -83,7 +83,7 @@ inputs:
template-title-advice:
type: string
default: >-
Envoy/prechecks (\($context.target)) advice
\($context.check.name) (\($context.target)) advice
template-title-failure:
type: string
default: >-
Expand Down Expand Up @@ -165,7 +165,7 @@ runs:
else
.conclusion = ("${{ inputs.title-success }}" | gfm::action("success"))
end
| .advice = ($context.config.check.advice[$context.target] // "")
| .advice = ($context.check.advice[$context.target] // "")
| if .advice != "" then
.advice |= ({content: ., title: (. | "${{ inputs.template-title-advice }}")} | gfm::collapse)
else
Expand Down

0 comments on commit 37307c7

Please sign in to comment.