Add semver note to documentation

This commit is contained in:
Sergey-Murtazin 2021-10-26 10:03:40 +03:00
parent 35030c1fd2
commit 4607096c6c

View file

@ -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). 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 ```yaml
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -42,6 +42,13 @@ steps:
- run: go version - run: go version
``` ```
### Versioning
Major versions: `12`, `14`, `16`
More specific versions: `10.15`, `14.2.0`, `16.3.0`
Range versions: `^1.13.1`
For more information about semantic versioning please refer [semver](https://github.com/npm/node-semver) documentation
# Usage # Usage
See [action.yml](action.yml) See [action.yml](action.yml)