Skip to content

Commit d24a525

Browse files
author
Andrei Neagu
committed
added conditions
1 parent 9c857bd commit d24a525

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/docker_publisher_osparc_services/http_interface.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async def github_did_last_repo_run_pass(
4141
run["head_commit"]["id"] == branch_hash
4242
and run["head_branch"] == repo_model.branch
4343
and run["status"] == "completed"
44+
and run["conclusion"] == "success"
4445
):
4546
associated_run = run
4647
break
@@ -57,10 +58,7 @@ async def github_did_last_repo_run_pass(
5758
branch_hash=branch_hash,
5859
)
5960

60-
return (
61-
associated_run["status"] == "completed"
62-
and associated_run["conclusion"] == "success"
63-
)
61+
return True
6462

6563

6664
async def _gitlab_get_project_id(repo_model: RepoModel) -> str:

0 commit comments

Comments
 (0)