Skip to content

Commit

Permalink
workflows/e2e_libvirt: get go version from versions.yaml
Browse files Browse the repository at this point in the history
Changed the workflow to remove the hard-coded go version, instead it
will get from versions.yaml.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
  • Loading branch information
wainersm committed Sep 12, 2023
1 parent c19ec0f commit 662d96b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/e2e_libvirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:

env:
CLOUD_PROVIDER: libvirt
GO_VERSION: "1.20.8"
DEBIAN_FRONTEND: noninteractive

jobs:
Expand All @@ -36,6 +35,12 @@ jobs:
fetch-depth: 0
ref: ${{ inputs.git_ref }}

- name: Read properties from versions.yaml
run: |
go_version="$(yq '.tools.golang' versions.yaml)"
[ -n "$go_version" ]
echo "GO_VERSION=${go_version}" >> "$GITHUB_ENV"
- name: Setup Golang version ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit 662d96b

Please sign in to comment.