From 446f0ba19ed243e9a91e1cdeeba204399e988cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hegyi=20=C3=81ron=20Ferenc?= Date: Wed, 24 Jan 2024 15:41:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=BE=20ci:=20dont=20commit=20if=20no=20?= =?UTF-8?q?changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/json.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/json.yml b/.github/workflows/json.yml index 765b636..7623643 100644 --- a/.github/workflows/json.yml +++ b/.github/workflows/json.yml @@ -74,8 +74,7 @@ jobs: run: | git config --local user.email "eemoji-bot@users.noreply.github.com" git config --local user.name "eemoji-bot" - git commit -a -m "chore: update emojis" - git push + git diff --quiet && git diff --staged --quiet || (git commit -a -m "chore: update emojis" && git push) - name: Deploy to GitHub Pages id: deployment