File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,13 @@ jobs:
46
46
# `npm install` on Linux.
47
47
npm install
48
48
49
- git config --global user.email "[email protected] "
50
- git config --global user.name "github-actions[bot]"
51
- # The period in `git add --all .` ensures that we stage deleted files too.
52
- git add --all .
53
- git commit -m "Use @types/node=${NODE_TYPES_VERSION}"
49
+ if [ ! -z "$(git status --porcelain)" ]; then
50
+ git config --global user.email "[email protected] "
51
+ git config --global user.name "github-actions[bot]"
52
+ # The period in `git add --all .` ensures that we stage deleted files too.
53
+ git add --all .
54
+ git commit -m "Use @types/node=${NODE_TYPES_VERSION}"
55
+ fi
54
56
55
57
- name : Check generated JS
56
58
run : .github/workflows/script/check-js.sh
You can’t perform that action at this time.
0 commit comments