Skip to content

Commit

Permalink
add go-version output when using go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Aug 15, 2023
1 parent 4878e37 commit fde5dd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fde5dd2

Please sign in to comment.