Skip to content

Commit cb2a30f

Browse files
committed
Doc CI: always use git add --all and git diff --staged
Fixes that some changes were not considered in the sync job.
1 parent e33a744 commit cb2a30f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/doc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ 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 --quiet
81+
# Add all files to index and look at staged diff
82+
git add --all
83+
if git diff --exit-code --staged --quiet
8284
then
8385
echo "$shortSha introduces no doc changes; skip commit and push."
8486
else
85-
git add --all
8687
git commit -m "Sync doc from $shortSha
8788
8889
Revision in godot-rust: ${GITHUB_SHA}"

0 commit comments

Comments
 (0)