From 8470ff2e7c9026d2ab104e8625cbfa6ab069dab2 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Mon, 25 Nov 2024 12:30:14 -0500 Subject: [PATCH] feat: add manifest version see also https://github.com/CCBR/CHAMPAGNE/pull/213 --- main.nf | 2 +- nextflow.config | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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