mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Merge branch 'dev' into releases/v3
This commit is contained in:
commit
7b5eb6be51
@ -67,9 +67,8 @@ export const action: ActionInterface = {
|
||||
? getInput('GIT_CONFIG_EMAIL')
|
||||
: pusher && pusher.email
|
||||
? pusher.email
|
||||
: `${
|
||||
process.env.GITHUB_ACTOR || 'github-pages-deploy-action'
|
||||
}@users.noreply.github.com`,
|
||||
: `${process.env.GITHUB_ACTOR ||
|
||||
'github-pages-deploy-action'}@users.noreply.github.com`,
|
||||
gitHubToken: getInput('GITHUB_TOKEN'),
|
||||
name: !isNullOrUndefined(getInput('GIT_CONFIG_NAME'))
|
||||
? getInput('GIT_CONFIG_NAME')
|
||||
|
@ -245,7 +245,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
||||
// Cleans up temporary files/folders and restores the git state.
|
||||
info('Running post deployment cleanup jobs… 🗑️')
|
||||
await execute(
|
||||
`git worktree remove ${temporaryDeploymentDirectory}`,
|
||||
`git worktree remove ${temporaryDeploymentDirectory} --force`,
|
||||
action.workspace
|
||||
)
|
||||
await rmRF(temporaryDeploymentDirectory)
|
||||
|
@ -19,9 +19,10 @@ export const generateTokenType = (action: ActionInterface): string =>
|
||||
export const generateRepositoryPath = (action: ActionInterface): string =>
|
||||
action.ssh
|
||||
? `git@github.com:${action.repositoryName}`
|
||||
: `https://${
|
||||
action.accessToken || `x-access-token:${action.gitHubToken}`
|
||||
}@github.com/${action.repositoryName}.git`
|
||||
: `https://${action.accessToken ||
|
||||
`x-access-token:${action.gitHubToken}`}@github.com/${
|
||||
action.repositoryName
|
||||
}.git`
|
||||
|
||||
/* Checks for the required tokens and formatting. Throws an error if any case is matched. */
|
||||
export const hasRequiredParameters = (action: ActionInterface): void => {
|
||||
|
Loading…
Reference in New Issue
Block a user