diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4a84cc..238b5b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,14 +8,14 @@ jobs: name: 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 cc05e97..7d7a78d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,14 +11,14 @@ jobs: contents: write 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 --tags --unshallow -f + - 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: