From 6fb76d901c63c22aecef7b821e0023ad6eff3ee4 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 15 Nov 2019 14:48:42 +0100 Subject: [PATCH] Fix unknown ref --- lib/main.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'] || '.');