diff --git a/index.js b/index.js index e65a181..9dbacc2 100644 --- a/index.js +++ b/index.js @@ -64,7 +64,7 @@ async function getAndPostPullRequests() { core.info(pr.head.ref === branch); core.info(pr.head.ref === branch && pr.base.ref === base_branch); } - if (targetPRFound) { + if (!targetPRFound) { core.info( `No open pulls found, to merge ${branch} into ${base_branch}. Trying to create a new PR.`, );