From 8fcb465f0228a46c9a59a48d570901c7ea4dc7f6 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Tue, 18 Jul 2023 11:40:05 +0200 Subject: [PATCH] bump-version will use dev in multiqc_config.yml if the new version is x.x.xdev --- nf_core/bump_version.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nf_core/bump_version.py b/nf_core/bump_version.py index b462ee1377..0bf3b10c42 100644 --- a/nf_core/bump_version.py +++ b/nf_core/bump_version.py @@ -45,14 +45,19 @@ def bump_pipeline_version(pipeline_obj, new_version): ], ) # multiqc_config.yaml + multiqc_new_version = "dev" if "dev" in new_version else new_version update_file_version( Path("assets", "multiqc_config.yml"), pipeline_obj, [ + ( + "/dev/", + f"/{multiqc_new_version}/", + ), ( rf"{re.escape(current_version)}", - f"{new_version}", - ) + f"{multiqc_new_version}", + ), ], )