We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6a259 commit bae9f29Copy full SHA for bae9f29
1 file changed
.github/workflows/render-notebooks.yml
@@ -45,10 +45,14 @@ jobs:
45
- name: Check for changes
46
id: git-check
47
run: |
48
- if [[ -n "$(git status --porcelain **/*.ipynb)" ]]; then
49
- echo "has_changes=true" >> $GITHUB_OUTPUT
50
- else
+ # More reliable way to check for changes in notebooks
+ git update-index --refresh
+ if git diff-index --quiet HEAD -- "*.ipynb"; then
51
+ echo "No changes detected in notebooks"
52
echo "has_changes=false" >> $GITHUB_OUTPUT
53
+ else
54
+ echo "Changes detected in notebooks"
55
+ echo "has_changes=true" >> $GITHUB_OUTPUT
56
fi
57
58
- name: Show modified files
0 commit comments