mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Update git.ts
This commit is contained in:
parent
273c87e514
commit
7eb191bafc
18
src/git.ts
18
src/git.ts
@ -21,15 +21,15 @@ export async function init(action: ActionInterface): Promise<void | Error> {
|
|||||||
info(`Deploying using ${action.tokenType}… 🔑`)
|
info(`Deploying using ${action.tokenType}… 🔑`)
|
||||||
info('Configuring git…')
|
info('Configuring git…')
|
||||||
|
|
||||||
// try {
|
try {
|
||||||
// await execute(
|
await execute(
|
||||||
// `git config --global --add safe.directory "${action.workspace}"`,
|
`git config --global --add safe.directory "${action.workspace}"`,
|
||||||
// action.workspace,
|
action.workspace,
|
||||||
// action.silent
|
action.silent
|
||||||
// )
|
)
|
||||||
// } catch {
|
} catch {
|
||||||
// info('Unable to set workspace as a safe directory…')
|
info('Unable to set workspace as a safe directory…')
|
||||||
// }
|
}
|
||||||
|
|
||||||
await execute(
|
await execute(
|
||||||
`git config user.name "${action.name}"`,
|
`git config user.name "${action.name}"`,
|
||||||
|
Loading…
Reference in New Issue
Block a user