Skip to content

Commit dcb410d

Browse files
committed
Add diff check before committing
1 parent b355c0e commit dcb410d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-push-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
git config --global user.name "github-actions[bot]"
6060
git config --global user.email "github-actions[bot]@users.noreply.github.com"
6161
git add dist -f
62-
git commit -m "$MSG" --no-verify --signoff
62+
git diff-index --quiet HEAD || git commit -m "$MSG" --no-verify --signoff
6363
git push origin $BRANCH_NAME
6464
6565
deploy:

0 commit comments

Comments
 (0)