Skip to content

Commit 894face

Browse files
Merge pull request #1008 from github/edoardo/no-fail-12.12
Avoid failure if `@types/node` is already 12.12
2 parents 4d339ae + a9095ce commit 894face

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/pr-checks.yml

+7-5
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)