From 662d96b27d02e6c30a21e7ab884b31ddb84aa4c6 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Fri, 8 Sep 2023 10:26:05 -0300 Subject: [PATCH] workflows/e2e_libvirt: get go version from versions.yaml Changed the workflow to remove the hard-coded go version, instead it will get from versions.yaml. Signed-off-by: Wainer dos Santos Moschetta --- .github/workflows/e2e_libvirt.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e_libvirt.yaml b/.github/workflows/e2e_libvirt.yaml index cae50396a..4670386fd 100644 --- a/.github/workflows/e2e_libvirt.yaml +++ b/.github/workflows/e2e_libvirt.yaml @@ -23,7 +23,6 @@ on: env: CLOUD_PROVIDER: libvirt - GO_VERSION: "1.20.8" DEBIAN_FRONTEND: noninteractive jobs: @@ -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: