From bb6434c747fa7022e12fa1cae2a0951fcffcff26 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 26 Jul 2025 10:51:20 +0200 Subject: [PATCH] Add non-null check --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3c983d4..4df23ec 100644 --- a/dist/index.js +++ b/dist/index.js @@ -85351,7 +85351,7 @@ async function setupRuby(options = {}) { await common.time('bundle install', async () => bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version'])) - if (fs.existsSync(lockFile)) { + if (lockFile !== null && fs.existsSync(lockFile)) { await core.group(`Print lockfile`, async () => await exec.exec('cat', [lockFile])) } diff --git a/index.js b/index.js index d783d68..2d29628 100644 --- a/index.js +++ b/index.js @@ -100,7 +100,7 @@ export async function setupRuby(options = {}) { await common.time('bundle install', async () => bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version'])) - if (fs.existsSync(lockFile)) { + if (lockFile !== null && fs.existsSync(lockFile)) { await core.group(`Print lockfile`, async () => await exec.exec('cat', [lockFile])) }