Skip to content

Commit 1a0c172

Browse files
committed
ci: Account for PR_NUMBER being set to an empty string
This is the case for CI after merge that is no longer associated with a pull request.
1 parent 9d0ee21 commit 1a0c172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libm/ci/ci-util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def make_workflow_output(self) -> str:
205205
skip_tests = False
206206
error_on_many_tests = False
207207

208-
if pr_number is not None:
208+
if pr_number is not None and len(pr_number) > 0:
209209
pr = PrInfo.load(pr_number)
210210
skip_tests = pr.contains_directive(SKIP_EXTENSIVE_DIRECTIVE)
211211
error_on_many_tests = not pr.contains_directive(

0 commit comments

Comments
 (0)