Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a903d7c

Browse files
authored
fix(ci): use env for Go version in release workflow (coder#7673)
1 parent dd69cc9 commit a903d7c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- "v*"
77
workflow_dispatch:
88
inputs:
9-
# For some reason, setup-go won't actually pick up a new patch version if
10-
# it has an old one cached. We need to manually specify the versions so we
11-
# can get the latest release. Never use "~1.xx" here!
129
go_version:
1310
description: "Go version to use for building."
1411
required: false
@@ -35,6 +32,10 @@ env:
3532
# https://github.blog/changelog/2022-06-10-github-actions-inputs-unified-across-manual-and-reusable-workflows/
3633
CODER_RELEASE: ${{ !inputs.dry_run }}
3734
CODER_DRY_RUN: ${{ inputs.dry_run }}
35+
# For some reason, setup-go won't actually pick up a new patch version if
36+
# it has an old one cached. We need to manually specify the versions so we
37+
# can get the latest release. Never use "~1.xx" here!
38+
CODER_GO_VERSION: "1.20.4"
3839

3940
jobs:
4041
release:
@@ -99,7 +100,7 @@ jobs:
99100

100101
- uses: actions/setup-go@v4
101102
with:
102-
go-version: ${{ inputs.go_version }}
103+
go-version: ${{ env.CODER_GO_VERSION }}
103104

104105
- name: Cache Node
105106
id: cache-node

0 commit comments

Comments
 (0)