From 13b97168fc6adb6e6c265078dfbec1a10535c09f Mon Sep 17 00:00:00 2001 From: wyatt-avilla Date: Sun, 5 Nov 2023 22:01:09 -0800 Subject: [PATCH] doesn't push if there aren't any changes --- .github/workflows/test-all-patches-action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-all-patches-action.yml b/.github/workflows/test-all-patches-action.yml index 4ffacbc..a269c20 100644 --- a/.github/workflows/test-all-patches-action.yml +++ b/.github/workflows/test-all-patches-action.yml @@ -30,5 +30,4 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add . - git commit -m "automatic wiki update from github actions" - git push + git diff-index --quiet HEAD || git commit -m "automatic wiki update from github actions" && git push