Skip to content

Commit 0383313

Browse files
fix: responses (#121)
1 parent 1f98b9f commit 0383313

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/util/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _dispatch_and_get_run(workflow_file: str, workflow_inputs: dict = None):
6868
dispatch_url = f"{REPO_API_BASE}/actions/workflows/{workflow_file}/dispatches"
6969
all_jobs_url = f"{REPO_HTML_BASE}/actions/workflows/{workflow_file}"
7070
status_code = call_github_workflow(dispatch_url, workflow_inputs)
71-
if status_code != 204:
71+
if status_code < 200 or status_code >= 300:
7272
raise ValueError(f"GitHub workflow dispatch failed with status {status_code}")
7373
run_info = _get_workflow_run_id(workflow_file)
7474
return {

0 commit comments

Comments
 (0)