Checkout orphan
This commit is contained in:
parent
094f87438c
commit
1c2389336c
|
@ -44,6 +44,7 @@ function run() {
|
||||||
core.info(`🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo`);
|
core.info(`🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo`);
|
||||||
process.chdir(build_dir);
|
process.chdir(build_dir);
|
||||||
yield exec.exec('git', ['init']);
|
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.name', commit_name]);
|
||||||
yield exec.exec('git', ['config', 'user.email', commit_email]);
|
yield exec.exec('git', ['config', 'user.email', commit_email]);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -30,6 +30,7 @@ async function run() {
|
||||||
|
|
||||||
process.chdir(build_dir);
|
process.chdir(build_dir);
|
||||||
await exec.exec('git', ['init']);
|
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.name', commit_name]);
|
||||||
await exec.exec('git', ['config', 'user.email', commit_email]);
|
await exec.exec('git', ['config', 'user.email', commit_email]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user