File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 [ -z "$FILTER" ] || FILTER_IF_SET=" / $FILTER"
5858 COMMENT_BODY="Benchmark GHA (${CATEGORIES}${FILTER_IF_SET}): ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
5959 echo "COMMENT_BODY=$COMMENT_BODY" >> "$GITHUB_OUTPUT"
60- echo "COMMENT_URL=$(gh pr comment -R "${REPO:-$GITHUB_REPOSITORY}" "$PR_ID" --body "$COMMENT_BODY")" >> "$GITHUB_OUTPUT"
60+ COMMENT_URL=$(gh pr comment -R "${REPO:-$GITHUB_REPOSITORY}" "$PR_ID" --body "$COMMENT_BODY")
61+ echo "COMMENT_URL=$COMMENT_URL" >> "$GITHUB_OUTPUT"
6162 env :
6263 CATEGORIES : ${{ inputs.category }}
6364 FILTER : ${{ inputs.filter }}
Original file line number Diff line number Diff line change 2727 matrix : ${{ steps.query.outputs.matrix }}
2828 steps :
2929 - id : query
30+ # Explicit bash enables pipefail so jq cannot hide a failed curl.
31+ shell : bash
3032 run : |
31- matrix=$(curl -s https://raw.githubusercontent.com/nodejs/Release/refs/heads/main/schedule.json | jq -c --arg now "$(date +%Y-%m-%d)" '[with_entries(select(.value.end > $now and .value.start < $now)) | keys[] | ltrimstr("v") | tonumber] + ["latest-nightly"]')
32- echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
33+ {
34+ printf 'matrix='
35+ curl -fsSL https://github.com/nodejs/Release/raw/HEAD/schedule.json \
36+ | jq -Mrc --arg now "$(date +%Y-%m-%d)" '
37+ [
38+ with_entries(select(.value.end > $now and .value.start < $now))
39+ | keys[]
40+ | ltrimstr("v") | tonumber
41+ ] + ["latest-nightly"]'
42+ } >> "$GITHUB_OUTPUT"
3343 report :
3444 needs :
3545 - collect-versions
Original file line number Diff line number Diff line change @@ -230,14 +230,15 @@ jobs:
230230 - name : Collect matrix of support OpenSSL versions
231231 id : query
232232 run : |
233- echo "matrix=$(
233+ {
234+ printf 'matrix='
234235 nix-instantiate --eval --strict --json -E "
235236 let
236237 matrix = import $TAR_DIR/tools/nix/openssl-matrix.nix {};
237238 in
238239 builtins.map (attr: { inherit attr; inherit (builtins.getAttr attr matrix) name; }) (builtins.attrNames matrix)
239240 "
240- )" >> "$GITHUB_OUTPUT"
241+ } >> "$GITHUB_OUTPUT"
241242
242243 # Builds and tests Node.js with shared libraries against every supported
243244 # OpenSSL release version available in the repo-pinned nixpkgs. The default
You can’t perform that action at this time.
0 commit comments