Skip to content

Commit

Permalink
Adjust docs and GitHub action for v0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Oct 26, 2020
1 parent 659e84d commit 282d053
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
11 changes: 8 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion docs/gh-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 282d053

Please sign in to comment.