Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
imskr authored Feb 24, 2024
1 parent 10ebf67 commit 68edb6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ func main() {
log.Fatalf("Error updating readme %s", err)
}

// mark safe directory
safeCmd := exec.Command("git", "config", "--global", "--add", "safe.directory", "/github/workspace")
err = safeCmd.Run()
if err != nil {
log.Fatalf("Error setting safe directory %s", err)
}

// set git user name
nameCmd := exec.Command("git", "config", "user.name", commit_user)
err = nameCmd.Run()
Expand Down

0 comments on commit 68edb6d

Please sign in to comment.