Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nf_core/pipelines/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ def bump_pipeline_version(pipeline_obj: Pipeline, new_version: str) -> None:
yaml_key=["template", "version"],
)

# update rocrate
ROCrate(pipeline_obj.wf_path).update_rocrate()
# update rocrate if ro-crate is present
if Path(pipeline_obj.wf_path, "ro-crate-metadata.json").exists():
ROCrate(pipeline_obj.wf_path).update_rocrate()


def bump_nextflow_version(pipeline_obj: Pipeline, new_version: str) -> None:
Expand Down
2 changes: 1 addition & 1 deletion nf_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ def get_repo_releases_branches(pipeline, wfs):
raise AssertionError(f"Not able to find pipeline '{pipeline}'")

# Get branch information from github api - should be no need to check if the repo exists again
branch_response = gh_api.safe_get(f"https://api.github.com/repos/{pipeline}/branches")
branch_response = gh_api.safe_get(f"https://api.github.com/repos/{pipeline}/branches?per_page=100")
for branch in branch_response.json():
if (
branch["name"] != "TEMPLATE"
Expand Down
Loading