diff --git a/.github/workflows/cd.release.yml b/.github/workflows/cd.release.yml index a1ddbb0..99ee156 100644 --- a/.github/workflows/cd.release.yml +++ b/.github/workflows/cd.release.yml @@ -16,10 +16,13 @@ jobs: with: fetch-depth: 0 ssh-key: "${{ secrets.DEPLOY_KEY }}" + - uses: arnested/go-version-action@v1 + id: go-version - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.16 + go-version: ${{ steps.go-version.outputs.latest }} + check-latest: true - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflows/ci.build.yml b/.github/workflows/ci.build.yml index d7a0658..f896e63 100644 --- a/.github/workflows/ci.build.yml +++ b/.github/workflows/ci.build.yml @@ -13,10 +13,12 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - uses: arnested/go-version-action@v1 + id: go-version - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.16 + go-version: ${{ steps.go-version.outputs.latest }} - name: Build a test release run: | go build . diff --git a/.github/workflows/ci.lint_test.yml b/.github/workflows/ci.lint_test.yml index 15d5edf..ccb83e4 100644 --- a/.github/workflows/ci.lint_test.yml +++ b/.github/workflows/ci.lint_test.yml @@ -34,10 +34,17 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: arnested/go-version-action@v1 + id: go-version - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.16 + go-version: ${{ steps.go-version.outputs.latest }} + check-latest: true - name: Checkout code uses: actions/checkout@v2 - name: Test