Skip to content

Commit 3e9d548

Browse files
Add semver note to documentation (#164)
1 parent 02f7ea9 commit 3e9d548

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The V2 offers:
2121

2222
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).
2323

24-
Matching by semver spec:
24+
Matching by [semver spec](https://github.com/npm/node-semver):
2525
```yaml
2626
steps:
2727
- uses: actions/checkout@v2
@@ -74,6 +74,13 @@ jobs:
7474
- run: go run hello.go
7575
```
7676
77+
### Supported version syntax
78+
The `go-version` input supports the following syntax:
79+
80+
Specific versions: `1.15`, `1.16.1`, `1.17.0-rc2`, `1.16.0-beta1`
81+
SemVer's version range syntax: `^1.13.1`
82+
For more information about semantic versioning please refer [semver](https://github.com/npm/node-semver) documentation
83+
7784
# License
7885

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

0 commit comments

Comments
 (0)