From c047759ee9b72364b6346a6e41e84f1e87b20dc4 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Fri, 13 Sep 2024 10:39:30 +0200 Subject: [PATCH] logging --- src/get-prereqs.mjs | 1 + src/main.mjs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/get-prereqs.mjs b/src/get-prereqs.mjs index ae48a08..cd3ded0 100644 --- a/src/get-prereqs.mjs +++ b/src/get-prereqs.mjs @@ -114,6 +114,7 @@ export const getPrereqs = async ({ for (const source of sources) { const content = await fs.readFile(source, { encoding: 'utf8' }).catch(e => { if (e.code === 'ENOENT') { + console.log(`Can't find ${source}`); return null; } else { diff --git a/src/main.mjs b/src/main.mjs index 28242a3..b6a5b89 100644 --- a/src/main.mjs +++ b/src/main.mjs @@ -15,6 +15,8 @@ const run = async () => { sources, }); + console.log([perl, prereqs]); + if (perl) { core.setOutput('perl', dottedVersion(perl)); }