Update merge-main-into-prs.yml (#12921)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/12922/head
Glenn Jocher 2024-04-14 06:30:37 -07:00 committed by GitHub
parent 6c8f693352
commit 51dc1af6e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -44,9 +44,9 @@ jobs:
for pr in open_pulls:
# Compare PR head with main to see if it's behind
try:
comparison = repo.compare(pr.base.ref, pr.head.ref) # Ensure correct order of base and head
if comparison.behind_by > 0:
try:
# Merge main into the PR branch
success = pr.update_branch()
assert success, "Branch update failed"