mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
Add logging statements
This commit is contained in:
parent
ec7d98ca18
commit
8d8703ed87
1 changed files with 5 additions and 0 deletions
5
index.js
5
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue