From 77430ff24c4a011a1f02f1f03e1271b09be30cb0 Mon Sep 17 00:00:00 2001 From: simone-weiss Date: Wed, 27 Aug 2025 09:23:29 +0200 Subject: [PATCH] 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. --- .github/workflows/update-themes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-themes.yml b/.github/workflows/update-themes.yml index c5228ae..4765b61 100644 --- a/.github/workflows/update-themes.yml +++ b/.github/workflows/update-themes.yml @@ -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