From 3bf634fd4f2fa3c7aca1a4716f21eed32d85aaac Mon Sep 17 00:00:00 2001 From: John Murret Date: Tue, 25 Jun 2024 15:40:33 -0600 Subject: [PATCH] changing go set up --- .github/workflows/backport-commenter.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backport-commenter.yml b/.github/workflows/backport-commenter.yml index 12458678f912..4c3f3576ed8f 100644 --- a/.github/workflows/backport-commenter.yml +++ b/.github/workflows/backport-commenter.yml @@ -27,14 +27,18 @@ env: GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }} jobs: + get-go-version: + uses: ./.github/workflows/reusable-get-go-version.yml validate-backports-oss: container: hashicorpdev/backport-assistant:claire-dev runs-on: [ 'ubuntu-latest' ] + needs: + - get-go-version steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version-file: 'go.mod' + go-version: ${{ needs.get-go-version.outputs.go-version }} # NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos. - name: Setup Git run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com" @@ -60,12 +64,13 @@ jobs: # running in parallel will push it over the limit. needs: - validate-backports-oss + - get-go-version if: ${{ always() }} steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version-file: 'go.mod' + go-version: ${{ needs.get-go-version.outputs.go-version }} # NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos. - name: Setup Git run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"