diff --git a/lib/main.js b/lib/main.js index cd0daa5..bf79bf5 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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.`); diff --git a/src/main.ts b/src/main.ts index 6355c6c..af1ee6a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'] || '.');