From 06e9bf65c90002b6a403cd2918f82c920a8976de Mon Sep 17 00:00:00 2001 From: Louis Ruch Date: Thu, 1 Feb 2024 16:51:40 -0800 Subject: [PATCH] Use .go-version --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac7f1ef6..0bdc9dd7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,11 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - id: go-version - run: echo "name=version::$(cat ./.go-version)" >> "$GITHUB_OUTPUT" + # We use .go-version as our source of truth for current Go + # version, because "goenv" can react to it automatically. + run: | + echo "Building with Go $(cat .go-version)" + echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT" release-notes: runs-on: ubuntu-latest steps: