From 46fb4e2352e9fdb7d8c6585552cefd918f6fbcbc Mon Sep 17 00:00:00 2001 From: vsyrgkanis Date: Sat, 20 Jul 2024 07:30:34 -0700 Subject: [PATCH] Update python-notebooks.yml --- .github/workflows/python-notebooks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-notebooks.yml b/.github/workflows/python-notebooks.yml index c8d7ae8b..77c670ec 100644 --- a/.github/workflows/python-notebooks.yml +++ b/.github/workflows/python-notebooks.yml @@ -34,8 +34,9 @@ jobs: if: github.event_name == 'pull_request' id: find_notebooks_pr run: | - git fetch origin ${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.ref }} - git diff --name-only origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} > changed_files.txt + # git fetch origin ${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.ref }} + # git diff --name-only origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} > changed_files.txt + git diff --name-only -r HEAD^1 HEAD > changed_files.txt grep -E '\.ipynb$|\.github/workflows/python-notebooks.yml$' changed_files.txt > changed_notebooks.txt || echo "No notebooks changed" > changed_notebooks.txt - name: Find changed notebooks in Push