diff --git a/lib/git.js b/lib/git.js index ac101914..b332db95 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.build); + yield util_1.execute(`git push origin ${constants_1.action.branch}`, 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 84d29edf..0db1359d 100644 --- a/src/git.ts +++ b/src/git.ts @@ -87,7 +87,7 @@ export async function deploy(): Promise { ); await execute( - `git push --force ${repositoryPath}`, + `git push origin ${action.branch}`, action.build );