Skip to content

Commit

Permalink
changing go set up
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Jun 25, 2024
1 parent c3ccfa5 commit 3bf634f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/backport-commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 3bf634f

Please sign in to comment.