Github action for getting environment information.
Outputs useful information like go version and node version by reading files like go.mod and package.json
steps:
- uses: actions/checkout@v2
- id: info
uses: konveyor/get-env-info@v1
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.info.outputs.go_version }} # The Go version to download (if necessary) and use.
- run: go version
steps:
- uses: actions/checkout@v2
- id: info
uses: konveyor/get-env-info@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ steps.info.outputs.node_version }}
- run: node --version
Name | Description | Default |
---|---|---|
dir |
Path to the directory in which to look for go.mod, package.json, etc. | current directory |
Name | Description |
---|---|
go_version |
The version of Go mentioned in go.mod file. |
node_version |
The version of Node mentioned in package.json file under "engines": {"node":"vX.Y.Z"} |