Skip to content

Commit

Permalink
Add semver note to documentation (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-Murtazin authored Dec 1, 2021
1 parent 02f7ea9 commit 3e9d548
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The V2 offers:

It will first check the local cache for a version match. If version is not found locally, It will pull it from `main` branch of [go-versions](https://github.com/actions/go-versions/blob/main/versions-manifest.json) repository and on miss or failure, it will fall back to the previous behavior of download directly from [go dist](https://storage.googleapis.com/golang).

Matching by semver spec:
Matching by [semver spec](https://github.com/npm/node-semver):
```yaml
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -74,6 +74,13 @@ jobs:
- run: go run hello.go
```
### Supported version syntax
The `go-version` input supports the following syntax:

Specific versions: `1.15`, `1.16.1`, `1.17.0-rc2`, `1.16.0-beta1`
SemVer's version range syntax: `^1.13.1`
For more information about semantic versioning please refer [semver](https://github.com/npm/node-semver) documentation

# License

The scripts and documentation in this project are released under the [MIT License](LICENSE)
Expand Down

0 comments on commit 3e9d548

Please sign in to comment.