Update git.ts

This commit is contained in:
James Ives 2022-04-23 15:54:43 -04:00
parent 273c87e514
commit 7eb191bafc

View File

@ -21,15 +21,15 @@ export async function init(action: ActionInterface): Promise<void | Error> {
info(`Deploying using ${action.tokenType}… 🔑`)
info('Configuring git…')
// try {
// await execute(
// `git config --global --add safe.directory "${action.workspace}"`,
// action.workspace,
// action.silent
// )
// } catch {
// info('Unable to set workspace as a safe directory…')
// }
try {
await execute(
`git config --global --add safe.directory "${action.workspace}"`,
action.workspace,
action.silent
)
} catch {
info('Unable to set workspace as a safe directory…')
}
await execute(
`git config user.name "${action.name}"`,