Skip to content

Commit ef7e56e

Browse files
committed
Only commit changes
1 parent d65a758 commit ef7e56e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/dist.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2727
- name: Commit generated code
2828
run: |
29-
git add .
30-
git commit -m "Update generated dist ($(git rev-parse --short HEAD))"
31-
git push
32-
29+
if ! git diff --exit-code --quiet; then
30+
git add .
31+
git commit -m "Update generated dist ($(git rev-parse --short HEAD))"
32+
git push
33+
fi

0 commit comments

Comments
 (0)