mirror of
https://github.com/github/codeql-action.git
synced 2025-12-18 21:39:15 +08:00
Avoid failure if @types/node is already 12.12
This commit is contained in:
12
.github/workflows/pr-checks.yml
vendored
12
.github/workflows/pr-checks.yml
vendored
@@ -46,11 +46,13 @@ jobs:
|
|||||||
# `npm install` on Linux.
|
# `npm install` on Linux.
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
git config --global user.email "github-actions@github.com"
|
if [ ! -z "$(git status --porcelain)" ]; then
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.email "github-actions@github.com"
|
||||||
# The period in `git add --all .` ensures that we stage deleted files too.
|
git config --global user.name "github-actions[bot]"
|
||||||
git add --all .
|
# The period in `git add --all .` ensures that we stage deleted files too.
|
||||||
git commit -m "Use @types/node=${NODE_TYPES_VERSION}"
|
git add --all .
|
||||||
|
git commit -m "Use @types/node=${NODE_TYPES_VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check generated JS
|
- name: Check generated JS
|
||||||
run: .github/workflows/script/check-js.sh
|
run: .github/workflows/script/check-js.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user