Skip to content

Commit

Permalink
tools: do not mask possible error from command in start-ci.sh
Browse files Browse the repository at this point in the history
Revise start-ci.sh to conform with shellcheck 0.8.0 default checks.

Refs: https://www.shellcheck.net/wiki/SC2312
  • Loading branch information
Trott committed Dec 22, 2021
1 parent 5016181 commit 0f852ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/actions/start-ci.sh
Expand Up @@ -17,7 +17,8 @@ for pr in "$@"; do
# Do we need to reset?
gh pr edit "$pr" --add-label "$REQUEST_CI_FAILED_LABEL"

jq -n --arg content "<details><summary>Couldn't start CI</summary><pre>$(cat output)</pre></details>" > output.json
details="$(cat output)"
jq -n --arg content "<details><summary>Couldn't start CI</summary><pre>$details</pre></details>" > output.json

gh pr comment "$pr" --body-file output.json

Expand Down

0 comments on commit 0f852ce

Please sign in to comment.