Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b1f4cf0

Browse filesBrowse files
committed
Do not commit if nothing to commit
1 parent 98625b3 commit b1f4cf0
Copy full SHA for b1f4cf0

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed

‎action.yml

Copy file name to clipboardExpand all lines: action.yml
+6-4Lines changed: 6 additions & 4 deletions
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 github-actions@github.com
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 github-actions@github.com
78+
git commit -am "Update mapping file"
79+
git push
80+
fi
7981
shell: sh

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.