From 13f4b0a83d7e44ac29f1d7340defc266f218cc36 Mon Sep 17 00:00:00 2001 From: Kartik Joshi Date: Wed, 11 Oct 2023 13:02:42 +0530 Subject: [PATCH] Azure: Use versions.yaml to read go version in e2e test Use versions.yaml to read go version in e2e test Fixes: #1496 Signed-off-by: Kartik Joshi --- .github/workflows/azure-e2e-test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure-e2e-test.yml b/.github/workflows/azure-e2e-test.yml index 01e2fd8e0f..dd01c8c315 100644 --- a/.github/workflows/azure-e2e-test.yml +++ b/.github/workflows/azure-e2e-test.yml @@ -48,10 +48,13 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Extract go version number + run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV" + - name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: ${{ env.GO_VERSION }} cache-dependency-path: go.sum - uses: azure/login@v1 @@ -93,10 +96,14 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Extract go version number + run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV" + + - name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: ${{ env.GO_VERSION }} - name: Create provisioner file env: