diff --git a/tidelift_yml.go b/tidelift_yml.go index c973ce4..5a0c2e0 100644 --- a/tidelift_yml.go +++ b/tidelift_yml.go @@ -20,10 +20,11 @@ func verifyTideliftYamlExists(directory string) bool { } func passesMinimumRequirements(directory string) string { - os.Chdir(directory) - filename, _ := filepath.Abs("./.tidelift.yml") + + filename, _ := filepath.Abs(fmt.Sprintf("%s/.tidelift.yml", directory)) yamlFile, err := ioutil.ReadFile(filename) + check(err) type TideliftYML struct { @@ -34,6 +35,7 @@ func passesMinimumRequirements(directory string) string { var yml TideliftYML err = yaml.Unmarshal(yamlFile, &yml) + check(err) // Check for Team name