We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a73ae commit 99bffa1Copy full SHA for 99bffa1
src/index.js
@@ -50,7 +50,7 @@ if (pushToBranch) {
50
await exec(`git config --global user.email action@github.com`);
51
const clone = await exec(`git clone https://${github.context.actor}:${githubToken}@github.com/${owner}/${repo}.git branch-${branchName}`);
52
// Check out to branch
53
- await exec(`${branchExists ? `git checkout ${branchName}` : `git checkout --orphan ${branchName}`}`);
+ await exec(`${branchExists ? `git checkout ${branchName}` : `git checkout --orphan ${branchName}`}`, [], { cwd: `branch-${branchName}` });
54
if (clone !== 0) return exit('Something went wrong while cloning the repository.');
55
56
// Copy compiled files and package* files
0 commit comments