Adding Go version file support
In scope of this release we add the go-version-file input. The new input (go-version-file
) provides functionality to specify the path to the file containing Go version with such behaviour:
- If the file does not exist the action will throw an error.
- If you specify both go-version and go-version-file inputs, the action will use value from the go-version input and throw the following warning: Both go-version and go-version-file inputs are specified, only go-version will be used.
- For now the action supports .go-version and go.mod files.
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'path/to/go.mod'
- run: go version
Besides, the following pull requests included in this release: