From 7b8a9f9768fd1614dbfe7a1a6c68af3664a33094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aram=C3=ADs=20Segovia?= Date: Fri, 11 Jul 2025 18:26:29 -0400 Subject: [PATCH] Update src/utils.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index b5ee0bdb..84e51efd 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -332,6 +332,10 @@ export function getVersionInputFromToolVersions(versionFile: string): string[] { export function getVersionInputFromPipfileFile(versionFile: string): string[] { core.debug(`Trying to resolve version from ${versionFile}`); + if (!fs.existsSync(versionFile)) { + core.warning(`File ${versionFile} does not exist.`); + return []; + } let pipfileFile = fs.readFileSync(versionFile, 'utf8'); // Normalize the line endings in the pipfileFile pipfileFile = pipfileFile.replace(/\r\n/g, '\n');