Checkout orphan

This commit is contained in:
CrazyMax 2019-11-15 15:05:12 +01:00
parent 094f87438c
commit 1c2389336c
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ function run() {
core.info(`🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo`);
process.chdir(build_dir);
yield exec.exec('git', ['init']);
yield exec.exec('git', ['checkout', '--orphan', target_branch]);
yield exec.exec('git', ['config', 'user.name', commit_name]);
yield exec.exec('git', ['config', 'user.email', commit_email]);
try {

View File

@ -30,6 +30,7 @@ async function run() {
process.chdir(build_dir);
await exec.exec('git', ['init']);
await exec.exec('git', ['checkout', '--orphan', target_branch]);
await exec.exec('git', ['config', 'user.name', commit_name]);
await exec.exec('git', ['config', 'user.email', commit_email]);