mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-23 00:50:48 +00:00
Store Go version as a step output
This changes from using an environment variable to using a step output to store the Go version that is installed. This mirrors changes made to the other program versions and how they're stored.
This commit is contained in:
parent
2699e09eb7
commit
8797e110d3
1 changed files with 6 additions and 6 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -24,16 +24,16 @@ jobs:
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
# GO_VERSION and GOCACHE are used by the cache task, so the Go
|
# We need the Go version and Go cache location for the actions/cache step,
|
||||||
# installation must happen before that.
|
# so the Go installation must happen before that.
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.16'
|
go-version: '1.16'
|
||||||
- name: Store installed Go version
|
- name: Store installed Go version
|
||||||
|
id: go-version
|
||||||
run: |
|
run: |
|
||||||
echo "GO_VERSION="\
|
echo "::set-output name=version::"\
|
||||||
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')" \
|
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')"
|
||||||
>> $GITHUB_ENV
|
|
||||||
- name: Lookup Go cache directory
|
- name: Lookup Go cache directory
|
||||||
id: go-cache
|
id: go-cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
|
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
|
||||||
py${{ steps.setup-python.outputs.python-version }}-\
|
py${{ steps.setup-python.outputs.python-version }}-\
|
||||||
go${{ env.GO_VERSION }}-\
|
go${{ steps.go-version.outputs.version }}-\
|
||||||
packer${{ steps.setup-env.outputs.packer-version }}-\
|
packer${{ steps.setup-env.outputs.packer-version }}-\
|
||||||
tf${{ steps.setup-env.outputs.terraform-version }}-"
|
tf${{ steps.setup-env.outputs.terraform-version }}-"
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue