diff --git a/README.md b/README.md index 8529afc..d52af16 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ jobs: - uses: actions/checkout@v1 - uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1 with: - fastlaneDir: ./fastlane # optional. default is './fastlane'. + fastlaneDir: ./android-metadata # optional. default is './fastlane/metadata/android'. # enable check to validate if a locale is supported by the Play Store Listing. usePlayStoreLocales: true # optional. default is false. ``` diff --git a/action.yaml b/action.yaml index 7eca575..7cac78d 100644 --- a/action.yaml +++ b/action.yaml @@ -5,9 +5,9 @@ description: >- the Play Store listing constraints. inputs: fastlaneDir: - description: Path of the Fastlane directory + description: Path of the Fastlane Android directory required: false - default: ./fastlane + default: ./fastlane/metadata/android usePlayStoreLocales: description: Throw error if a locale isn't recognised by Google Play Store required: false diff --git a/main.go b/main.go index 605bb88..0c4d8b3 100644 --- a/main.go +++ b/main.go @@ -56,11 +56,10 @@ func init() { } func main() { - metadataPath := filepath.Join(fastlanePath, "metadata", "android") - files, err := ioutil.ReadDir(metadataPath) + files, err := ioutil.ReadDir(fastlanePath) if err != nil { const errFmt = "failed to read directory %q: %s\n" - fmt.Fprintf(os.Stderr, errFmt, metadataPath, err) + fmt.Fprintf(os.Stderr, errFmt, fastlanePath, err) os.Exit(1) } @@ -71,7 +70,7 @@ func main() { continue } - localePath := filepath.Join(metadataPath, f.Name()) + localePath := filepath.Join(fastlanePath, f.Name()) if usePlayStoreLocales && !playStoreLocales.contains(f.Name()) { const errFmt = "play store doesn't recognise %q locale: closest alternative is %q" errs = append(errs, &validationError{