Skip to content

Commit d28fd36

Browse files
committed
Fix string vs int ID comparison
1 parent 8010073 commit d28fd36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/scripts/library-coverage/compare-files-comment-pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def get_previous_run_id(repo, run_id, pr_number):
211211
"[.workflow_runs.[] | select(.head_branch==\"" + pr_branch + "\" and .head_repository.full_name==\"" + pr_repo + "\") | { created_at: .created_at, run_id: .id}] | sort_by(.created_at) | reverse | [.[].run_id]"])
212212

213213
ids = json.loads(ids)
214-
if ids[0] != run_id:
214+
if ids[0] != int(run_id):
215215
raise Exception("Expected to find " + str(run_id) +
216216
" in the list of matching runs.")
217217

0 commit comments

Comments
 (0)