Skip to content

Commit a3d9be0

Browse files
committed
Add validation the PR is open
1 parent 22e7c3f commit a3d9be0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/release/update-release-assets.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ def main(args: 'argparse.Namespace') -> int:
259259

260260
pull_request = pull_candidates[0]
261261

262+
if pull_request.state != "open":
263+
print(f"Error: PR for version {args.version} is not open", file=sys.stderr)
264+
return 1
265+
262266
head_sha = pull_request.head.sha
263267

264268
print(f"Collecting workflow runs for ref {head_sha}")

0 commit comments

Comments
 (0)