From 8d8703ed87845896dcc4f1ffd454da83871754dc Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:40:20 -0500 Subject: [PATCH] Add logging statements --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 5ed541f..4c4abe7 100644 --- a/index.js +++ b/index.js @@ -90,6 +90,9 @@ async function run() { try { const version = core.getInput("version"); release = release_data(version, octokit); + core.info( + `Input version '${version}' resolved to Nextflow ${release.name}` + ); } catch (e) { core.setFailed( `Could not retrieve Nextflow release matching ${version}.\n${e.message}` @@ -101,6 +104,7 @@ async function run() { try { const get_all = core.getBooleanInput("all"); url = nextflow_bin_url(release, get_all); + core.info(`Preparing to download from ${url}`); } catch (e) { core.setFailed(`Could not parse the download URL\n${e.message}`); } @@ -121,6 +125,7 @@ async function run() { ); core.addPath(nf_path); + core.info(`Downloaded \`nextflow\` to ${nf_path} and added to PATH`); } catch (e) { core.setFailed(e.message); }