diff --git a/lib/git.js b/lib/git.js index 81471097..ac101914 100644 --- a/lib/git.js +++ b/lib/git.js @@ -90,7 +90,7 @@ function deploy() { yield util_1.execute(`git remote add origin ${constants_1.repositoryPath}`, constants_1.action.build); yield util_1.execute(`git add --all`, constants_1.action.build); yield util_1.execute(`git commit -m "Deploying to ${constants_1.action.branch} from ${constants_1.action.baseBranch} ${process.env.GITHUB_SHA}" --quiet`, constants_1.action.build); - yield util_1.execute(`git push --force ${constants_1.repositoryPath} ${constants_1.action.baseBranch}:${constants_1.action.branch}`, constants_1.action.build); + yield util_1.execute(`git push --force ${constants_1.repositoryPath}`, constants_1.action.build); /* await execute( `git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`, diff --git a/src/git.ts b/src/git.ts index 5e03d05e..84d29edf 100644 --- a/src/git.ts +++ b/src/git.ts @@ -87,7 +87,7 @@ export async function deploy(): Promise { ); await execute( - `git push --force ${repositoryPath} ${action.baseBranch}:${action.branch}`, + `git push --force ${repositoryPath}`, action.build );