mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
fix: add tolerance for ambiguous behavior in gh run list
This commit is contained in:
@@ -245,8 +245,14 @@ def resolve_release_workflow(version: str) -> dict:
|
||||
f"rust-v{version}",
|
||||
"--json",
|
||||
"workflowName,url,headSha",
|
||||
# Empirically, we have seen both "rust-release" and
|
||||
# ".github/workflows/rust-release.yml" as the workflowName, so we
|
||||
# check for both here. The docs are not clear on which is expected:
|
||||
# https://cli.github.com/manual/gh_run_list
|
||||
"--workflow",
|
||||
".github/workflows/rust-release.yml",
|
||||
"--jq",
|
||||
'first(.[] | select(.workflowName == "rust-release"))',
|
||||
"first(.[])",
|
||||
],
|
||||
text=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user