Fix unknown ref

This commit is contained in:
CrazyMax 2019-11-15 14:48:42 +01:00
parent 489bbd6a6b
commit 6fb76d901c
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ function run() {
core.info(`✅ Force push`); core.info(`✅ Force push`);
gitPushCmd.push('--force'); 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); yield exec.exec('git', gitPushCmd);
process.chdir(process.env['GITHUB_WORKSPACE'] || '.'); process.chdir(process.env['GITHUB_WORKSPACE'] || '.');
core.info(`🎉 Content of ${build_dir} has been deployed to GitHub Pages.`); core.info(`🎉 Content of ${build_dir} has been deployed to GitHub Pages.`);

View File

@ -71,7 +71,7 @@ async function run() {
core.info(`✅ Force push`); core.info(`✅ Force push`);
gitPushCmd.push('--force'); 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); await exec.exec('git', gitPushCmd);
process.chdir(process.env['GITHUB_WORKSPACE'] || '.'); process.chdir(process.env['GITHUB_WORKSPACE'] || '.');