Skip to content

Commit 717ea67

Browse files
update nightly test with better json parsing
1 parent ff3e035 commit 717ea67

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/nightly-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ jobs:
4141
done
4242
4343
NB_JSON=$(printf '%s\n' "${FILTERED_NBS[@]}" | jq -R . | jq -s .)
44+
45+
# Ensure at least "[]" if empty
46+
if [ -z "$NB_JSON" ] || [ "$NB_JSON" = "[]" ]; then
47+
NB_JSON="[]"
48+
fi
49+
4450
echo "All valid notebooks: $NB_JSON"
45-
echo "::set-output name=notebooks::$NB_JSON"
51+
echo "notebooks=$NB_JSON" >> $GITHUB_OUTPUT
52+
4653
4754
# ---------------------------------------------------------
4855
# 2) Test all notebooks in parallel

0 commit comments

Comments
 (0)