mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 01:46:04 +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 {
|
try {
|
||||||
const version = core.getInput("version");
|
const version = core.getInput("version");
|
||||||
release = release_data(version, octokit);
|
release = release_data(version, octokit);
|
||||||
|
core.info(
|
||||||
|
`Input version '${version}' resolved to Nextflow ${release.name}`
|
||||||
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
core.setFailed(
|
core.setFailed(
|
||||||
`Could not retrieve Nextflow release matching ${version}.\n${e.message}`
|
`Could not retrieve Nextflow release matching ${version}.\n${e.message}`
|
||||||
|
@ -101,6 +104,7 @@ async function run() {
|
||||||
try {
|
try {
|
||||||
const get_all = core.getBooleanInput("all");
|
const get_all = core.getBooleanInput("all");
|
||||||
url = nextflow_bin_url(release, get_all);
|
url = nextflow_bin_url(release, get_all);
|
||||||
|
core.info(`Preparing to download from ${url}`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
core.setFailed(`Could not parse the download URL\n${e.message}`);
|
core.setFailed(`Could not parse the download URL\n${e.message}`);
|
||||||
}
|
}
|
||||||
|
@ -121,6 +125,7 @@ async function run() {
|
||||||
);
|
);
|
||||||
|
|
||||||
core.addPath(nf_path);
|
core.addPath(nf_path);
|
||||||
|
core.info(`Downloaded \`nextflow\` to ${nf_path} and added to PATH`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
core.setFailed(e.message);
|
core.setFailed(e.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue