Skip to content

Commit

Permalink
bump version in multiqc_config correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Jun 1, 2023
1 parent 36c9284 commit 531f977
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nf_core/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"""

import logging
import os
import re
from pathlib import Path

import rich.console

Expand Down Expand Up @@ -46,12 +46,12 @@ def bump_pipeline_version(pipeline_obj, new_version):
)
# multiqc_config.yaml
update_file_version(
"multiqc_config.yaml",
Path("assets", "multiqc_config.yml"),
pipeline_obj,
[
(
rf"version\s*=\s*[\'\"]?{re.escape(current_version)}[\'\"]?",
f"version = '{new_version}'",
rf"{re.escape(current_version)}",
f"{new_version}",
)
],
)
Expand Down Expand Up @@ -88,7 +88,7 @@ def bump_nextflow_version(pipeline_obj, new_version):

# .github/workflows/ci.yml - Nextflow version matrix
update_file_version(
os.path.join(".github", "workflows", "ci.yml"),
Path(".github", "workflows", "ci.yml"),
pipeline_obj,
[
(
Expand Down

0 comments on commit 531f977

Please sign in to comment.