From 3843226fed0da2c1886121c304c8fe8165c267a7 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 10 Nov 2019 15:08:04 -0500 Subject: [PATCH] Debugging --- lib/git.js | 2 +- src/git.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git.js b/lib/git.js index b332db95..a83bab00 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 origin ${constants_1.action.branch}`, constants_1.action.build); + yield util_1.execute(`git push --force 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 0db1359d..d81195e3 100644 --- a/src/git.ts +++ b/src/git.ts @@ -87,7 +87,7 @@ export async function deploy(): Promise { ); await execute( - `git push origin ${action.branch}`, + `git push --force origin ${action.branch}`, action.build );