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: