We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
request-ci-failed
1 parent c890136 commit 078be3bCopy full SHA for 078be3b
tools/actions/start-ci.sh
@@ -17,10 +17,13 @@ for pr in "$@"; do
17
# Do we need to reset?
18
gh pr edit "$pr" --add-label "$REQUEST_CI_FAILED_LABEL"
19
20
- jq -n --arg content "<details><summary>Couldn't start CI</summary><pre>$(cat output || true)</pre></details>" > output.json
+ # shellcheck disable=SC2154
21
+ cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
22
+ body="<details><summary>Failed to start CI</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>"
23
+ echo "$body"
24
- gh pr comment "$pr" --body-file output.json
25
+ gh pr comment "$pr" --body "$body"
26
- rm output.json;
27
+ rm output
28
fi
29
done;
0 commit comments