From 8eb1a06fcf091441bfb91fa7b0b14a6815c911f8 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 5 Mar 2023 09:53:07 +1300 Subject: [PATCH] fix: update to the latest patch version of go v1.17 (#178) --- .github/workflows/checks.yml | 11 ++++------- .github/workflows/release.yml | 13 +++++-------- .go-version | 2 +- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index af0e5ff5..ca234c31 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -6,9 +6,6 @@ on: branches: - main -env: - GO_VERSION: '1.17.9' - permissions: contents: read # to fetch code (actions/checkout) @@ -22,7 +19,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - run: make test @@ -35,7 +32,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - run: make test @@ -48,7 +45,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - run: make test @@ -62,7 +59,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bcfe216..3ce93435 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,6 @@ on: tags: - 'v*' -env: - GO_VERSION: '1.17.9' - permissions: contents: read # to fetch code (actions/checkout) @@ -21,7 +18,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - run: make test @@ -34,7 +31,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - run: make test @@ -47,7 +44,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - run: make test @@ -60,7 +57,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 @@ -89,7 +86,7 @@ jobs: - run: git fetch --prune --unshallow - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version cache: true - name: Run GoReleaser diff --git a/.go-version b/.go-version index 19fb7bd9..47287f17 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.17.9 +1.17.13