mirror of
https://github.com/actions/setup-go.git
synced 2025-04-24 09:52:15 +00:00
Update README.md
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
This commit is contained in:
parent
c23c60054a
commit
2812173487
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -58,13 +58,13 @@ steps:
|
||||||
- run: go version
|
- run: go version
|
||||||
```
|
```
|
||||||
|
|
||||||
> **_NOTE:_** It is better to enclose the version in single quotation mark, due to YAML parsing. When the input is specified like this
|
> **Note**: Due to the peculiarities of YAML parsing, it is recommended to wrap the version in single quotation marks:
|
||||||
|
>
|
||||||
|
> ```yaml
|
||||||
|
> go-version: '1.20'
|
||||||
> ```
|
> ```
|
||||||
> 1.20 or >=1.17.0
|
>
|
||||||
> ```
|
> The recommendation is based on the YAML parser's behavior, which interprets non-wrapped values as numbers and, in the case of version 1.20, trims it down to 1.2, which may not be very obvious.
|
||||||
> 1.20 is parsed as a number and it is trimmed to 1.2 that is an expected behavior for numbers. You should specify input with quotes to treat
|
|
||||||
> it as a string.
|
|
||||||
|
|
||||||
Matching an unstable pre-release:
|
Matching an unstable pre-release:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Loading…
Add table
Reference in a new issue