mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Debugging
This commit is contained in:
parent
ffe5168337
commit
370bebadb6
@ -88,7 +88,7 @@ function deploy() {
|
|||||||
yield generateBranch();
|
yield generateBranch();
|
||||||
}
|
}
|
||||||
// Checks out the base branch to begin the deployment process.
|
// Checks out the base branch to begin the deployment process.
|
||||||
yield util_1.execute(`git checkout ${constants_1.action.baseBranch || "master"} ---`, constants_1.workspace);
|
yield util_1.execute(`git checkout ${constants_1.action.baseBranch || "master"}`, constants_1.workspace);
|
||||||
yield util_1.execute(`git fetch origin`, constants_1.workspace);
|
yield util_1.execute(`git fetch origin`, constants_1.workspace);
|
||||||
yield util_1.execute(`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${constants_1.action.branch}`, constants_1.workspace);
|
yield util_1.execute(`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${constants_1.action.branch}`, constants_1.workspace);
|
||||||
/*
|
/*
|
||||||
|
@ -76,7 +76,7 @@ export async function deploy(): Promise<any> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Checks out the base branch to begin the deployment process.
|
// Checks out the base branch to begin the deployment process.
|
||||||
await execute(`git checkout ${action.baseBranch || "master"} ---`, workspace);
|
await execute(`git checkout ${action.baseBranch || "master"}`, workspace);
|
||||||
await execute(`git fetch origin`, workspace);
|
await execute(`git fetch origin`, workspace);
|
||||||
await execute(
|
await execute(
|
||||||
`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`,
|
`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user