Fix: set git identity
This commit is contained in:
parent
c63c30fa47
commit
8e41642780
1 changed files with 6 additions and 6 deletions
12
main.go
12
main.go
|
@ -65,10 +65,6 @@ func Exec(args Args) error {
|
|||
}
|
||||
}
|
||||
|
||||
if err := writeConfig(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := copyFiles(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -77,6 +73,10 @@ func Exec(args Args) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := writeConfig(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := doCommit(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -122,11 +122,11 @@ func checkArgs(args *Args) error {
|
|||
}
|
||||
|
||||
func writeConfig(args Args) error {
|
||||
if err := repo.GlobalName("[BOT] pages deployer").Run(); err != nil {
|
||||
if err := execute(exec.Command("git", "config", "user.name", "[BOT] pages deployer")); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := repo.GlobalUser("noreply@pages.bot").Run(); err != nil {
|
||||
if err := execute(exec.Command("git", "config", "user.email", "noreply@pages.bot")); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue