Skip to content

Commit

Permalink
prepare release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgngwr committed May 8, 2022
1 parent b706a50 commit d03bc88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,18 @@ from the Play Store listing.

## Usage

_See [v1
README](https://github.com/ashutoshgngwr/validate-fastlane-supply-metadata/blob/v1/README.md)
if you're using v1._

```yaml
on: [pull_request]
jobs:
# required to run on Linux because this is a docker container action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1
- uses: ashutoshgngwr/validate-fastlane-supply-metadata@v2
with:
fastlaneDir: ./android-metadata # optional. default is './fastlane/metadata/android'.
# enable check to validate if a locale is supported by the Play Store Listing.
Expand All @@ -57,14 +61,14 @@ directly for environments other than GitHub actions.
```sh
docker run --rm --workdir /app --mount type=bind,source="$(pwd)",target=/app \
ashutoshgngwr/validate-fastlane-supply-metadata:v1 -help
ashutoshgngwr/validate-fastlane-supply-metadata:v2 -help
```

The default entry point accepts the following command-line flags.

```text
-fastlane-path string
path to the Fastlane directory (default "./fastlane")
path to the Fastlane Android directory (default "./fastlane/metadata/android")
-ga-file-annotations bool
enables file annotations for GitHub action (default: false)
-play-store-locales bool
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
default: "false"
runs:
using: docker
image: docker://ashutoshgngwr/validate-fastlane-supply-metadata:v1.4.1
image: docker://ashutoshgngwr/validate-fastlane-supply-metadata:v2.0.0
args:
- -ga-file-annotations
- -play-store-locales=${{ inputs.usePlayStoreLocales }}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var (
)

func init() {
flag.StringVar(&fastlanePath, "fastlane-path", "./fastlane", "path to the Fastlane directory")
flag.StringVar(&fastlanePath, "fastlane-path", "./fastlane/metadata/android", "path to the Fastlane Android directory")
flag.BoolVar(&useFileAnnotations, "ga-file-annotations", false, "enables file annotations for GitHub action")
flag.BoolVar(&usePlayStoreLocales, "play-store-locales", false, "throw error if a locale isn't recognised by Play Store")
flag.Parse()
Expand Down

0 comments on commit d03bc88

Please sign in to comment.