Force Commit

This commit is contained in:
James Ives 2019-11-09 08:58:52 -05:00
parent 7ec4ff590a
commit d8a8b79095
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ function deploy() {
yield util_1.execute(`git add --all .`, temporaryDeploymentDirectory);
yield util_1.execute(`git switch -c ${temporaryDeploymentBranch}`, temporaryDeploymentDirectory);
yield util_1.execute(`git commit -m "Deploying to ${constants_1.action.branch} from ${constants_1.action.baseBranch} ${process.env.GITHUB_SHA}" --quiet`, temporaryDeploymentDirectory);
yield util_1.execute(`git push ${constants_1.repositoryPath} ${temporaryDeploymentBranch}:${constants_1.action.branch}`, temporaryDeploymentDirectory);
yield util_1.execute(`git push --force ${constants_1.repositoryPath} ${temporaryDeploymentBranch}:${constants_1.action.branch}`, temporaryDeploymentDirectory);
return Promise.resolve("Commit step complete...");
});
}

View File

@ -100,7 +100,7 @@ export async function deploy(): Promise<any> {
temporaryDeploymentDirectory
);
await execute(
`git push ${repositoryPath} ${temporaryDeploymentBranch}:${action.branch}`,
`git push --force ${repositoryPath} ${temporaryDeploymentBranch}:${action.branch}`,
temporaryDeploymentDirectory
);