Skip to content

Commit

Permalink
Trying to use GOPRIVATE with GHT
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Nov 9, 2024
1 parent 60aba2d commit 478ae28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@ jobs:
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: "relayer/go.mod"
- name: Set Go private environment variable
run: echo "GOPRIVATE=github.com/smartcontractkit/gauntlet-plus-plus" >> $GITHUB_ENV
- name: Setup Go with private repo access
shell: bash
run: |
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
go env -w GOPRIVATE=github.com/smartcontractkit/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Ensure "make gomodtidy" has been run
run: |
make gomodtidy
Expand Down

0 comments on commit 478ae28

Please sign in to comment.