From 721bdf3e4e1c7f0d1920b41e763c89673da95d4c Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 15 Aug 2023 14:26:05 +0200 Subject: [PATCH] docs: add tiny reference for the .tool-versions See https://github.com/actions/setup-go/pull/402 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f81184c..903e83f 100644 --- a/README.md +++ b/README.md @@ -181,9 +181,9 @@ If both the `go-version` and the `go-version-file` inputs are provided then the If the file contains only major and minor (e.g. 1.18) tags, the action will search for the latest available patch version sequentially in the runner's directory with the cached tools, in the [version-manifest.json](https://github.com/actions/go-versions/blob/main/versions-manifest.json) file or at the go servers. -### If the go.mod file +### If the go.mod or .tool-versions files -The `go-version-file` input accepts a path to a `go.mod` file or a `go.work` file that contains the version of Go to be used by a project. As the `go.mod` file contains only major and minor (e.g. 1.18) tags, the action will follow the above-mentioned approach. +The `go-version-file` input accepts a path to a `go.mod` file, `.tool-versions` file or a `go.work` file that contains the version of Go to be used by a project. As the `go.mod` file contains only major and minor (e.g. 1.18) tags, the action will follow the above-mentioned approach. > The action will search for the `go.mod` file relative to the repository root