stop overwritting gitconfig
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
58731e8d9b
commit
e371fa8c49
1 changed files with 6 additions and 5 deletions
|
@ -13,7 +13,6 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func TestFindGitSlug(t *testing.T) {
|
func TestFindGitSlug(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
|
||||||
|
@ -147,9 +146,11 @@ func TestGitFindRef(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func gitConfig() {
|
func gitConfig() {
|
||||||
|
if os.Getenv("GITHUB_ACTIONS") == "true" {
|
||||||
_ = gitCmd("config", "--global", "user.email", "test@test.com")
|
_ = gitCmd("config", "--global", "user.email", "test@test.com")
|
||||||
_ = gitCmd("config", "--global", "user.name", "Unit Test")
|
_ = gitCmd("config", "--global", "user.name", "Unit Test")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func gitCmd(args ...string) error {
|
func gitCmd(args ...string) error {
|
||||||
cmd := exec.Command("git", args...)
|
cmd := exec.Command("git", args...)
|
||||||
|
|
Loading…
Reference in a new issue