Update README.md

Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
This commit is contained in:
Dmitry Shibanov 2023-06-06 16:37:56 +02:00 committed by GitHub
parent c23c60054a
commit 2812173487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,13 +58,13 @@ steps:
- 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
> ```
> 1.20 or >=1.17.0
> **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 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.
>
> 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.
Matching an unstable pre-release:
```yaml