Skip to content

Commit

Permalink
Update pr-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vsyrgkanis authored Jul 1, 2024
1 parent ffb16e1 commit 8b2acf0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ jobs:
- name: Find changed notebooks
id: find_notebooks
run: |
git diff --name-only ${{ github.base_ref }}..${{ github.head_ref }} > changed_files.txt
git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge
git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > changed_files.txt
grep '\.ipynb$' changed_files.txt > changed_notebooks.txt || echo "No notebooks changed" > changed_notebooks.txt
- name: Check if any notebooks changed
id: check_notebooks
run: |
Expand Down

0 comments on commit 8b2acf0

Please sign in to comment.