Skip to content

Commit

Permalink
fix: missing git fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Oct 7, 2024
1 parent 76b18e7 commit 5640eb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import doStuff from './do-stuff.js';

if (branchExists) {
ora.info(`Branch ${prBranchName} exists, checking out`);
execSync(`git fetch origin ${prBranchName}`);
execSync(`git checkout ${prBranchName}`);
ora.succeed(`Branch ${prBranchName} checked out`);
}
Expand Down

0 comments on commit 5640eb9

Please sign in to comment.