From 4b3bb09b5e09b31fbc9ff0cd6759ba6831a873e3 Mon Sep 17 00:00:00 2001 From: freearhey Date: Tue, 9 Feb 2021 10:16:02 +0300 Subject: [PATCH] Update auto-update.yml Prevent error while committing with no changes --- .github/workflows/auto-update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 9ba737445e..604969b2cf 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -18,7 +18,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git add . - git commit -m "[Bot] Format playlists" + git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists" git push generate: runs-on: ubuntu-latest @@ -52,5 +52,5 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git add . - git commit -m "[Bot] Update README.md" + git diff-index --quiet HEAD || git commit -m "[Bot] Update README.md" git push