Skip to content

Commit d97cec1

Browse files
tweak logic
1 parent 57ff62c commit d97cec1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v2
2222

23-
- id: get_nbs
23+
- name: Gather notebooks
2424
run: |
2525
# Compare this commit/PR to 'main' and list changed .ipynb files
2626
git fetch --depth=1 origin main
@@ -66,12 +66,18 @@ jobs:
6666
echo "All valid notebooks: $NB_JSON"
6767

6868
echo "notebooks=$NB_JSON" >> $GITHUB_OUTPUT
69-
69+
70+
- name: Gather notebooks
71+
run: |
72+
echo "$GITHUB_OUTPUT"
73+
74+
75+
7076
# ---------------------------------------------------------
7177
# 2) Test each changed notebook in parallel
7278
# ---------------------------------------------------------
7379
test_notebooks:
74-
if: ${{ fromJson(needs.gather_notebooks.outputs.notebooks).length > 0 }}
80+
if: ${{ fromJson(needs.gather_notebooks.outputs.notebooks) }}
7581
needs: gather_notebooks
7682
runs-on: ubuntu-latest
7783
strategy:

0 commit comments

Comments
 (0)