Skip to content

Commit

Permalink
bump-version will use dev in multiqc_config.yml if the new version is…
Browse files Browse the repository at this point in the history
… x.x.xdev
  • Loading branch information
mirpedrol committed Jul 18, 2023
1 parent b670f3a commit 8fcb465
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nf_core/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
),
],
)

Expand Down

0 comments on commit 8fcb465

Please sign in to comment.