diff --git a/.github/workflows/strip-python-notebooks.yml b/.github/workflows/strip-python-notebooks.yml index ab5f5002..02c79157 100644 --- a/.github/workflows/strip-python-notebooks.yml +++ b/.github/workflows/strip-python-notebooks.yml @@ -81,8 +81,10 @@ jobs: # Check if directory exists if [ -d "$dir" ]; then echo "Processing directory: $dir" - git diff "$dir"/*.ipynb "$dir"/*.irnb "$dir"/*.Rmd + if git diff --quiet "$dir"/*.ipynb "$dir"/*.irnb "$dir"/*.Rmd; then + echo "No changes were found" + else echo "Found changes in directory: $dir" echo "changed=true" >> $GITHUB_OUTPUT break 1