diff --git a/main.nf b/main.nf index 3c00970..08c0acb 100644 --- a/main.nf +++ b/main.nf @@ -1,5 +1,5 @@ log.info """\ -TOOL_NAME +TOOL_NAME $workflow.manifest.version ============= NF version : $nextflow.version runName : $workflow.runName diff --git a/nextflow.config b/nextflow.config index 66e0af5..97bf65c 100644 --- a/nextflow.config +++ b/nextflow.config @@ -79,6 +79,8 @@ dag { } includeConfig 'conf/modules.config' +String pipeline_version = new File("${projectDir}/VERSION").text + manifest { name = "CCBR/TOOL_NAME" author = "CCR Collaborative Bioinformatics Resource" @@ -86,6 +88,7 @@ manifest { description = "TODO one-line description of TOOL_NAME goes here" mainScript = "main.nf" defaultBranch = "main" + version = "${pipeline_version}" } // Function to ensure that resource requirements don't go beyond