Skip to content

Commit

Permalink
fix: early return
Browse files Browse the repository at this point in the history
  • Loading branch information
bonyuta0204 committed Nov 29, 2023
1 parent 870936f commit a2a1894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ async function main() {

if (!remoteBranches.includes(srcBranch)) {
setFailed(`Source branch ${srcBranch} does not exist`);
return;
}

if (!remoteBranches.includes(targetBranch)) {
setFailed(`Target branch ${targetBranch} does not exist`);
return;
}

const { repo, owner } = context.repo;
Expand Down

0 comments on commit a2a1894

Please sign in to comment.