Skip to content

Commit 490a769

Browse files
authored
Update update-docs.yml
Ensure that new files are also staged for commit.
1 parent 641f600 commit 490a769

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/update-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ jobs:
3131
run: |
3232
git config --global user.name "GitHub"
3333
git config --global user.email "noreply@github.com"
34-
git commit -a -m "Update pages"
34+
if git diff-index --quiet HEAD --; then
35+
echo "No changes to commit. Exiting."
36+
exit 0
37+
fi
38+
git add -A
39+
git commit -m "Update pages"
3540
git push

0 commit comments

Comments
 (0)