mirror of
https://github.com/tiennm99/hugoThemesSiteBuilder.git
synced 2026-10-18 02:14:41 +00:00
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:
1 parent
fe343d8dd2
commit
77430ff24c
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user