Skip to content

Commit a8a1b4a

Browse files
committed
Fix doc CI not correctly recognizing Git changes
Use '--cached' argument for 'git diff' Addendum to #877
1 parent bebb783 commit a8a1b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/doc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
7979
find gdnative -name .html -o -type f -print0 | xargs -0 sed -i 's/'"$libVersion"'/master/g'
8080
81-
if git diff --exit-code
81+
if git diff --exit-code --cached --quiet
8282
then
8383
echo "$shortSha introduces no doc changes; skip commit and push."
8484
else

0 commit comments

Comments
 (0)