Skip to content

Commit b1f4cf0

Browse files
committed
Do not commit if nothing to commit
1 parent 98625b3 commit b1f4cf0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

action.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ runs:
7272
- name: Update mapping file
7373
# https://github.com/actions/checkout/tree/2d1c1198e79c30cca5c3957b1e3b65ce95b5356e#push-a-commit-using-the-built-in-token
7474
run: |
75-
git config user.name github-actions
76-
git config user.email [email protected]
77-
git commit -am "Update mapping file"
78-
git push
75+
if [ -n "$(git status --porcelain)" ]; then
76+
git config user.name github-actions
77+
git config user.email [email protected]
78+
git commit -am "Update mapping file"
79+
git push
80+
fi
7981
shell: sh

0 commit comments

Comments
 (0)