1
0
mirror of synced 2026-01-06 06:02:35 -05:00

Update repo-sync.yml (#40360)

This commit is contained in:
Kevin Heis
2023-08-07 08:38:28 -07:00
committed by GitHub
parent 467282144e
commit 6970275997

View File

@@ -86,7 +86,8 @@ jobs:
console.log('Created pull request successfully', pull.html_url)
} catch (err) {
// Don't error/alert if there's no commits to sync
if (err.message?.includes('No commits')) {
// Don't throw if > 100 pulls with same head_sha issue
if (err.message?.includes('No commits') || err.message?.includes('same head_sha')) {
console.log(err.message)
return
}