From 992f0689006f912ae66668969f1fa6618fc53ebd Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 8 Jun 2023 15:37:31 +0200 Subject: [PATCH] Add note about YAML parsing versions (#382) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3d280b8..6dafed1 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,13 @@ steps: - run: go version ``` +> **Note**: Due to the peculiarities of YAML parsing, it is recommended to wrap the version in single quotation marks: +> +> ```yaml +> go-version: '1.20' +> ``` +> +> 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