Skip to content

Commit

Permalink
checkout -b
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Oct 7, 2024
1 parent 4a5a71e commit 413bc39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ import doStuff from './do-stuff.js';
execSync(`git fetch origin ${config.currentBranchName}`);
execSync(`git rebase ${config.currentBranchName} ${prBranchName}`, { stdio: 'inherit' });
ora.succeed('Rebased latest changes from current branch');
} else {
ora.info(`Branch ${prBranchName} does not exist, creating`);
execSync(`git checkout -b ${prBranchName}`);
ora.succeed(`Branch ${prBranchName} created`);
}

// Do stuff
Expand Down

0 comments on commit 413bc39

Please sign in to comment.