From c121870627990280bbb21a2057c57d6e916bdb0d 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 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure-e2e-test.yml b/.github/workflows/azure-e2e-test.yml index 01e2fd8e0f..0b5f252eaa 100644 --- a/.github/workflows/azure-e2e-test.yml +++ b/.github/workflows/azure-e2e-test.yml @@ -48,10 +48,15 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Extract go version number + run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV" + + - run: echo ${{ env.GO_VERSION }} + - 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 +98,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: