diff --git a/index.js b/index.js index 30179e7..dc77308 100644 --- a/index.js +++ b/index.js @@ -51,7 +51,10 @@ async function getAndPostPullRequests() { headers, body: JSON.stringify(postData), }); - + if (postResponse.status === 409) { + core.warning("PR between the branches already exists."); + return; + } if (!postResponse.ok) { throw new Error( `HTTP error! status on creating a new PR: ${postResponse.status}`,