mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
fix: godoc and file checks
This commit is contained in:
parent
f3910c9751
commit
b891a95a4b
@ -194,7 +194,8 @@ type Changelog struct {
|
||||
Sort string `yaml:",omitempty"`
|
||||
}
|
||||
|
||||
// EnvFile is the
|
||||
// EnvFiles holds paths to files that contains environment variables
|
||||
// values like the github token for example
|
||||
type EnvFiles struct {
|
||||
GitHubToken string `yaml:"github_token,omitempty"`
|
||||
}
|
||||
|
4
pipeline/env/env.go
vendored
4
pipeline/env/env.go
vendored
@ -59,10 +59,10 @@ func loadEnv(env, path string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||
bts, err := ioutil.ReadFile(path)
|
||||
if os.IsNotExist(err) {
|
||||
return "", nil
|
||||
}
|
||||
bts, err := ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user