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