ci: Do not fail when there is nothing to commit

When there is nothing to commit ci will fail with:

nothing to commit, working tree clean
Error: Process completed with exit code 1.

This was reported as #287.
Catch this by checking via `git diff-index` if there is anything to commit first.
This commit is contained in:
simone-weiss authored and Bjørn Erik Pedersen committed 2025-08-27 09:34:07 +02:00
1 parent fe343d8dd2
commit 77430ff24c
1 file changed
+1 -1
+1 -1
View File
@@ -38,5 +38,5 @@ jobs:
git config --global user.email "bep@users.noreply.github.com"
git config --global user.name "bep"
git add .
git commit -am "[Bot] Update themes"
git diff-index --quiet HEAD || git commit -am "[Bot] Update themes"
git push --force-with-lease