Skip to content

Commit ec83308

Browse files
authored
Merge pull request #113 from cisagov/improvement/update_go_configuration
Update Go installation in the `build.yml` workflow
2 parents 4215ba3 + fc55e84 commit ec83308

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@ jobs:
2626
python-version: "3.10"
2727
# We need the Go version and Go cache location for the actions/cache step,
2828
# so the Go installation must happen before that.
29-
- uses: actions/setup-go@v2
29+
- id: setup-go
30+
uses: actions/setup-go@v3
3031
with:
31-
go-version: "1.16"
32-
- name: Store installed Go version
33-
id: go-version
34-
run: |
35-
echo "::set-output name=version::"\
36-
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')"
32+
go-version: "1.19"
3733
- name: Lookup Go cache directory
3834
id: go-cache
3935
run: |
@@ -42,7 +38,7 @@ jobs:
4238
env:
4339
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
4440
py${{ steps.setup-python.outputs.python-version }}-\
45-
go${{ steps.go-version.outputs.version }}-\
41+
go${{ steps.setup-go.outputs.go-version }}-\
4642
packer${{ steps.setup-env.outputs.packer-version }}-\
4743
tf${{ steps.setup-env.outputs.terraform-version }}-"
4844
with:

0 commit comments

Comments
 (0)