Skip to content

Commit 06980d4

Browse files
authored
Merge pull request #3354 from mashehu/fix-ro-crate-in-bump-version
Fix ro crate in bump version
2 parents aef5e16 + 8c5855f commit 06980d4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nf_core/pipelines/bump_version.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ def bump_pipeline_version(pipeline_obj: Pipeline, new_version: str) -> None:
128128
yaml_key=["template", "version"],
129129
)
130130

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

134135

135136
def bump_nextflow_version(pipeline_obj: Pipeline, new_version: str) -> None:

nf_core/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def get_repo_releases_branches(pipeline, wfs):
10831083
raise AssertionError(f"Not able to find pipeline '{pipeline}'")
10841084

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

0 commit comments

Comments
 (0)