Skip to content

Commit 99bffa1

Browse files
author
Kovacs Alex
committed
fix: checking out
1 parent 48a73ae commit 99bffa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (pushToBranch) {
5050
await exec(`git config --global user.email action@github.com`);
5151
const clone = await exec(`git clone https://${github.context.actor}:${githubToken}@github.com/${owner}/${repo}.git branch-${branchName}`);
5252
// Check out to branch
53-
await exec(`${branchExists ? `git checkout ${branchName}` : `git checkout --orphan ${branchName}`}`);
53+
await exec(`${branchExists ? `git checkout ${branchName}` : `git checkout --orphan ${branchName}`}`, [], { cwd: `branch-${branchName}` });
5454
if (clone !== 0) return exit('Something went wrong while cloning the repository.');
5555

5656
// Copy compiled files and package* files

0 commit comments

Comments
 (0)