From 769b31637689c0ead7983cddf85b5ca019804f3b Mon Sep 17 00:00:00 2001 From: mrdudz Date: Thu, 4 May 2023 21:27:48 +0200 Subject: [PATCH] lets see if this will not fail when there are no changes in the docs --- .github/workflows/snapshot-on-push-master.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snapshot-on-push-master.yml b/.github/workflows/snapshot-on-push-master.yml index 62d6c6adb..9883003fb 100644 --- a/.github/workflows/snapshot-on-push-master.yml +++ b/.github/workflows/snapshot-on-push-master.yml @@ -114,8 +114,8 @@ jobs: git config user.email "cc65.nomail@github.com" git config push.default simple git add -A - git commit -m "Updated from cc65 commit ${GITHUB_SHA}." - git push + git diff-index --quiet HEAD || git commit -m "Updated from cc65 commit ${GITHUB_SHA}." + git diff-index --quiet HEAD || git push # enter secrets under "repository secrets" - name: Upload snapshot to sourceforge