From fde5dd24bd8d1dfc2a055288385cb9500846aa93 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 15 Aug 2023 14:23:31 +0200 Subject: [PATCH] add go-version output when using go.mod --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 913ccd1..f81184c 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,8 @@ steps: - run: go version ``` +Finally, the `go-version` output contains the resolved Golang version from the `go.mod` file. + ### If a different file The `go-version-file` input accepts a path to a file that contains the version of Go to be used by a project. It supports either major and minor (e.g 1.18) or major, minor and patch (e.g 1.18.7) tags. If the file contains only major and minor (e.g. 1.18) tags, the action will follow the above-mentioned approach.