diff --git a/.goreleaser.yml b/.goreleaser.yml index 0089b0c..3d134eb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ builds: - CGO_ENABLED=0 hooks: # Install upx first, https://github.com/upx/upx/releases - post: ./hack/ci/compress.sh + post: ./hack/compress.sh goos: - linux - darwin @@ -13,6 +13,11 @@ builds: - 386 ldflags: - -s -w -X github.com/mszostok/codeowners-validator/pkg/version.version={{.Version}} -X github.com/mszostok/codeowners-validator/pkg/version.commit={{.ShortCommit}} -X github.com/mszostok/codeowners-validator/pkg/version.buildDate={{.Date}} + # List of combinations of GOOS + GOARCH + GOARM to ignore. + # Default is empty. + ignore: + - goos: darwin + goarch: 386 archive: replacements: darwin: Darwin @@ -21,8 +26,8 @@ archive: 386: i386 amd64: x86_64 format_overrides: - - goos: windows - format: zip + - goos: windows + format: zip checksum: name_template: 'checksums.txt' snapshot: diff --git a/README.md b/README.md index 320dcd4..e19276b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ docker run --rm -v $(pwd):/repo -w /repo \ -e GITHUB_ACCESS_TOKEN="$GH_TOKEN" \ -e EXPERIMENTAL_CHECKS="notowned" \ -e OWNER_CHECKER_REPOSITORY="org-name/rep-name" \ - mszostok/codeowners-validator:v0.4.0 + mszostok/codeowners-validator:v0.5.0 ``` #### Command line @@ -46,7 +46,7 @@ env REPOSITORY_PATH="." \ #### GitHub Action ```yaml -- uses: mszostok/codeowners-validator@v0.4.0 +- uses: mszostok/codeowners-validator@v0.5.0 with: checks: "files,owners,duppatterns" experimental_checks: "notowned" @@ -70,13 +70,13 @@ Here is the recommended way to install `codeowners-validator`: ```bash # binary installed into ./bin/ -curl -sfL https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh | sh -s v0.4.0 +curl -sfL https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh | sh -s v0.5.0 # binary installed into $(go env GOPATH)/bin/codeowners-validator -curl -sfL https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v0.4.0 +curl -sfL https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v0.5.0 # In alpine linux (as it does not come with curl by default) -wget -O - -q https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh | sh -s v0.4.0 +wget -O - -q https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh | sh -s v0.5.0 # Print version. Add `--short` to print just the version number. codeowners-validator -v diff --git a/action.yml b/action.yml index fe95aa5..ac2a94d 100644 --- a/action.yml +++ b/action.yml @@ -45,7 +45,7 @@ inputs: runs: using: 'docker' - image: 'docker://mszostok/codeowners-validator:v0.4.0' + image: 'docker://mszostok/codeowners-validator:v0.5.0' env: ENVS_PREFIX: "INPUT" diff --git a/docs/gh-action.md b/docs/gh-action.md index eb7e96b..06a15f1 100644 --- a/docs/gh-action.md +++ b/docs/gh-action.md @@ -35,7 +35,7 @@ jobs: # Checks-out your repository, which is validated in the next step - uses: actions/checkout@v2 - name: GitHub CODEOWNERS Validator - uses: mszostok/codeowners-validator@v0.4.0 + uses: mszostok/codeowners-validator@v0.5.0 with: checks: "files,owners,duppatterns" experimental_checks: "notowned"