mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Not Required
This commit is contained in:
parent
ff7201a4d8
commit
0372f909eb
15
src/git.ts
15
src/git.ts
@ -18,16 +18,11 @@ export async function init(action: ActionInterface): Promise<void | Error> {
|
||||
await execute(`git init`, action.workspace)
|
||||
await execute(`git config user.name "${action.name}"`, action.workspace)
|
||||
await execute(`git config user.email "${action.email}"`, action.workspace)
|
||||
|
||||
try {
|
||||
await execute(`git remote rm origin`, action.workspace)
|
||||
} finally {
|
||||
await execute(
|
||||
`git remote add origin ${action.repositoryPath}`,
|
||||
action.workspace
|
||||
)
|
||||
}
|
||||
|
||||
await execute(`git remote rm origin`, action.workspace)
|
||||
await execute(
|
||||
`git remote add origin ${action.repositoryPath}`,
|
||||
action.workspace
|
||||
)
|
||||
await execute(`git fetch`, action.workspace)
|
||||
|
||||
info('Git configured… 🔧')
|
||||
|
Loading…
Reference in New Issue
Block a user