fix env if

This commit is contained in:
Phil 2021-10-05 19:24:46 +02:00 committed by GitHub
parent 4e1b9e0a2e
commit e6e14ff6e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -160,8 +160,7 @@ const workspace = process.env.GITHUB_WORKSPACE;
// case: when user wants to skip updating package-lock.json v2
try {
const bumpPackageLock = process.env['INPUT_BUMP_PACKAGE-LOCK']
if (bumpPackageLock) {
if (process.env['INPUT_BUMP_PACKAGE-LOCK'] === 'true') {
await runInWorkspace('npm', ['install', '--package-lock-only', '--ignore-scripts'])
}
} catch(e) {