Skip to content

Commit

Permalink
Merge pull request nf-core#3354 from mashehu/fix-ro-crate-in-bump-ver…
Browse files Browse the repository at this point in the history
…sion

Fix ro crate in bump version
  • Loading branch information
mirpedrol authored Dec 13, 2024
2 parents aef5e16 + 8c5855f commit 06980d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 06980d4

Please sign in to comment.