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:
4646 # `npm install` on Linux.
4747 npm install
4848
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
5456
5557 - name : Check generated JS
5658 run : .github/workflows/script/check-js.sh
You can’t perform that action at this time.
0 commit comments