File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,13 +43,26 @@ runs:
4343 # with:
4444 # output: " "
4545
46+ - name : Get changed files
47+ if : " !contains(env.COMMIT_MESSAGE, 'skip ci')"
48+ id : changed-files
49+ uses : tj-actions/changed-files@v35
50+
51+ - name : List all changed files
52+ run : |
53+ for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
54+ echo "$file was changed."
55+ done
56+ shell : bash -l {0}
57+
4658 - name : Get notebooks
4759 run : |
4860 if ${{ inputs.run_all == 'true' }}; then
4961 # nbs="tutorials/*/*Tutorial*.ipynb";
5062 nbs="tutorials/W2D5_*/*Tutorial*.ipynb";
5163 else
52- nbs=`python ci/select_notebooks.py ${{ steps.changes.outputs.files }}`;
64+ nbs=`python ci/select_notebooks.py ${{ steps.changed-files.outputs.all_changed_files }}`;
65+ # nbs=`python ci/select_notebooks.py ${{ steps.changes.outputs.files }}`;
5366 fi
5467 echo "NBS=$nbs" >> $GITHUB_ENV
5568 shell : bash -l {0}
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ inputs:
1010runs :
1111 using : composite
1212 steps :
13+ - name : Checkout
14+ uses : actions/checkout@v3
15+ with :
16+ persist-credentials : false
17+ fetch-depth : 0
18+ ref : ${{ github.head_ref }}
1319 # - name: Set up Python (conda)
1420 # uses: conda-incubator/setup-miniconda@v3
1521 # with:
Original file line number Diff line number Diff line change 5555 - name : Run Notebooks
5656 uses : ./.github/actions/check-notebooks
5757 with :
58- run_all : ' true '
58+ run_all : ' false '
5959 # exec_flag: '--check-only'
6060 exec_flag : ' --execute'
6161 # exercise-continue-on-error: true
You can’t perform that action at this time.
0 commit comments