mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Force Commit
This commit is contained in:
parent
7ec4ff590a
commit
d8a8b79095
@ -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...");
|
||||
});
|
||||
}
|
||||
|
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user