refactor(pkg): clean up semantic release interface

This commit is contained in:
Nightapes
2019-07-24 22:14:03 +02:00
parent e222734a1a
commit 1daff2bc8a
9 changed files with 171 additions and 63 deletions

View File

@@ -47,7 +47,7 @@ func Write(repository string, releaseVersion shared.ReleaseVersion) error {
return err
}
log.Debugf("Save %s with hash %s to cache", releaseVersion.Next.Version.String(), releaseVersion.Next.Commit)
log.Infof("Save %s with hash %s to cache", releaseVersion.Next.Version.String(), releaseVersion.Next.Commit)
return ioutil.WriteFile(completePath, data, 0644)
}

View File

@@ -51,7 +51,7 @@ func GetCIProvider(gitUtil *gitutil.GitUtil, envs map[string]string) (*ProviderC
log.Infof("Found CI: %s", config.Name)
return config, nil
}
log.Infof("%s", err.Error())
log.Debugf("%s", err.Error())
}
return nil, fmt.Errorf("could not find any CI, if running locally set env CI=true")
}