Fix unknown ref
This commit is contained in:
parent
489bbd6a6b
commit
6fb76d901c
|
@ -82,7 +82,7 @@ function run() {
|
|||
core.info(`✅ Force push`);
|
||||
gitPushCmd.push('--force');
|
||||
}
|
||||
gitPushCmd.push(gitURL.concat('@github.com/', repo, '.git'), `${target_branch}:${target_branch}`);
|
||||
gitPushCmd.push(gitURL.concat('@github.com/', repo, '.git'), target_branch);
|
||||
yield exec.exec('git', gitPushCmd);
|
||||
process.chdir(process.env['GITHUB_WORKSPACE'] || '.');
|
||||
core.info(`🎉 Content of ${build_dir} has been deployed to GitHub Pages.`);
|
||||
|
|
|
@ -71,7 +71,7 @@ async function run() {
|
|||
core.info(`✅ Force push`);
|
||||
gitPushCmd.push('--force');
|
||||
}
|
||||
gitPushCmd.push(gitURL.concat('@github.com/', repo, '.git'), `${target_branch}:${target_branch}`);
|
||||
gitPushCmd.push(gitURL.concat('@github.com/', repo, '.git'), target_branch);
|
||||
await exec.exec('git', gitPushCmd);
|
||||
|
||||
process.chdir(process.env['GITHUB_WORKSPACE'] || '.');
|
||||
|
|
Loading…
Reference in New Issue
Block a user