From 49dfd54f23200896d213e92a5451f2e302810e3c Mon Sep 17 00:00:00 2001 From: Sped0n Date: Sat, 4 Nov 2023 20:10:48 +0800 Subject: [PATCH] fix(artifacts.yml): only commit changes if there are any to avoid unnecessary commits The previous commit message was updated to only commit changes if there are any. This is done to avoid unnecessary commits when there are no changes in the artifacts. --- .github/workflows/artifacts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 727e1d6..db25391 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -73,5 +73,5 @@ jobs: pnpm run build git config --global user.email "noreply@github.com" git config --global user.name "CI" - git add -A && git commit -m "build: update bundled artifacts [skip ci]" + git diff --quiet || (git add -A && git commit -m "build: update bundled artifacts [skip ci]") git push