diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 0816ccb..0762a8b 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set Node.js 16.x uses: actions/setup-node@v2 diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index 55402d9..5f4f9f2 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest name: Check licenses steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set Node.js 16.x uses: actions/setup-node@v2 with: diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index c0bb369..79683ec 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -22,7 +22,7 @@ jobs: go: [1.12, 1.13, 1.14] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-go ${{ matrix.go }} uses: ./ @@ -41,7 +41,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] go-version: [1.16, 1.17] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Go and check latest uses: ./ with: @@ -60,13 +60,13 @@ jobs: go: [1.12.16, 1.13.11, 1.14.3] steps: - name: Checkout - uses: actions/checkout@v2 - + uses: actions/checkout@v3 + - name: setup-go ${{ matrix.go }} uses: ./ with: go-version: ${{ matrix.go }} - + - name: verify go run: __tests__/verify-go.sh ${{ matrix.go }} shell: bash @@ -81,7 +81,7 @@ jobs: go: [1.9, 1.8.6] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-go ${{ matrix.go }} uses: ./ diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 9e18f39..0dede41 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -17,7 +17,7 @@ jobs: operating-system: [ubuntu-latest, windows-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup node 16 uses: actions/setup-node@v2 diff --git a/README.md b/README.md index ee5557b..ec41e8e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@
This action sets up a go environment for use in actions by: @@ -16,6 +16,7 @@ This action sets up a go environment for use in actions by: The V3 offers: - Adds GOBIN to the PATH - Proxy Support +- `stable` input - Check latest version - Bug Fixes (including issues around version matching and semver) @@ -25,7 +26,7 @@ Matching by [semver spec](https://github.com/npm/node-semver): ```yaml steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v2 with: go-version: '^1.13.1' # The Go version to download (if necessary) and use. - run: go version @@ -44,7 +45,7 @@ Matching an unstable pre-release: ```yaml steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v2 with: go-version: '1.18.0-rc.1' # The Go version to download (if necessary) and use. - run: go version @@ -67,14 +68,14 @@ See [action.yml](action.yml) ```yaml steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v2 with: go-version: '1.16.1' # The Go version to download (if necessary) and use. - run: go run hello.go ``` -## Check latest version: +## Check latest version: The `check-latest` flag defaults to `false`. Use the default or set `check-latest` to `false` if you prefer stability and if you want to ensure a specific Go version is always used. @@ -85,7 +86,7 @@ If `check-latest` is set to `true`, the action first checks if the cached versio ```yaml steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v2 with: go-version: '1.14' check-latest: true @@ -113,7 +114,7 @@ jobs: ### Supported version syntax The `go-version` input supports the following syntax: -Specific versions: `1.15`, `1.16.1`, `1.17.0-rc.2`, `1.16.0-beta.1` +Specific versions: `1.15`, `1.16.1`, `1.17.0-rc.2`, `1.16.0-beta.1` SemVer's version range syntax: `^1.13.1`, `>=1.18.0-rc.1` For more information about semantic versioning please refer [semver](https://github.com/npm/node-semver) documentation