From 1b75e6b8f9e19d049721f398c0871b94e4db4653 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 28 Oct 2022 01:49:56 +0200 Subject: [PATCH] tools: fix `request-ci-failed` comment Refs: https://github.com/nodejs/node/pull/45209#issuecomment-1294239904 --- tools/actions/start-ci.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/actions/start-ci.sh b/tools/actions/start-ci.sh index a34f2a9496fb26..adf201f43b9332 100755 --- a/tools/actions/start-ci.sh +++ b/tools/actions/start-ci.sh @@ -17,10 +17,13 @@ for pr in "$@"; do # Do we need to reset? gh pr edit "$pr" --add-label "$REQUEST_CI_FAILED_LABEL" - jq -n --arg content "
Couldn't start CI
$(cat output || true)
" > output.json + # shellcheck disable=SC2154 + cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" + body="
Failed to start CI
$(cat output)
$cqurl
" + echo "$body" - gh pr comment "$pr" --body-file output.json + gh pr comment "$pr" --body "$body" - rm output.json; + rm output fi done;