From 1aefa9b090cc25bddb9e58138b784cbacf2c0a50 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 19 May 2024 18:36:07 +0200 Subject: [PATCH] Update to Golang 1.22 --- .github/workflows/push.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- go.mod | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4598427..746c884 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -7,14 +7,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.21' - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 1 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' - name: Check GoReleaser config uses: goreleaser/goreleaser-action@v5 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4d923b..ecd5045 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,14 +8,14 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.21' - name: Checkout uses: actions/checkout@v4 - name: Unshallow run: git fetch --prune --unshallow + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' - name: Check GoReleaser config uses: goreleaser/goreleaser-action@v5 with: @@ -25,7 +25,7 @@ jobs: uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --rm-dist + args: release --clean # key: ${{ secrets.YOUR_PRIVATE_KEY }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/go.mod b/go.mod index 70607be..f52b498 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/gesellix/couchdb-cluster-config/v17 -go 1.19 +go 1.22 + +toolchain go1.22.3 require github.com/urfave/cli/v2 v2.27.2