File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 2
2
doc2cache_llama3_1
3
3
semantic_caching_gemini
4
4
01_collaborative_filtering
5
- 05_nvidia_ai_rag_redis
5
+ 05_nvidia_ai_rag_redis
Original file line number Diff line number Diff line change @@ -64,14 +64,21 @@ jobs:
64
64
fi
65
65
66
66
echo "All valid notebooks : $NB_JSON"
67
-
68
- # 5) Write to $GITHUB_OUTPUT (modern approach instead of ::set-output)
69
- echo "notebooks=$NB_JSON" >> $GITHUB_OUTPUT
70
67
68
+ # 5) Write to $GITHUB_OUTPUT
69
+ if [ "$NB_JSON" != "[]" ]; then
70
+ echo "has_notebooks=true" >> $GITHUB_OUTPUT
71
+ else
72
+ echo "has_notebooks=false" >> $GITHUB_OUTPUT
73
+ fi
74
+
75
+ echo "notebooks=$NB_JSON" >> $GITHUB_OUTPUT
76
+
71
77
# ---------------------------------------------------------
72
78
# 2) Test each changed notebook in parallel
73
79
# ---------------------------------------------------------
74
80
test_notebooks :
81
+ if : ${{ needs.gather_notebooks.outputs.has_notebooks == 'true' }}
75
82
needs : gather_notebooks
76
83
runs-on : ubuntu-latest
77
84
strategy :
You can’t perform that action at this time.
0 commit comments