From d05734e386bb55338a2edf50e10c7f7e770278e6 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 19 May 2024 18:53:51 +0200 Subject: [PATCH] Use the Golang version from go.mod in CI and Release workflows --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/release.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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: