From 6970275997ad895ec4ec4915743b20833fc5d2b2 Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Mon, 7 Aug 2023 08:38:28 -0700 Subject: [PATCH] Update repo-sync.yml (#40360) --- .github/workflows/repo-sync.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 891923b516..ed598fab8d 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -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 }