Skip to content

Commit

Permalink
fix: workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hacheigriega committed Dec 12, 2023
1 parent f5236b8 commit 93eb572
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ jobs:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}
- name: Configure private token
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global url."https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
git config --global url."https://${USERNAME}:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Compile
if: steps.cache-binaries.outputs.cache-hit != 'true' && env.GIT_DIFF
run: |
Expand All @@ -69,7 +66,7 @@ jobs:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/sedaprotocol/vrf-go
GITHUB_USERNAME: ${{ github.actor }}
# GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
Expand All @@ -79,7 +76,7 @@ jobs:
check-latest: true
cache: true
cache-dependency-path: go.sum
- run: git config --global url.https://$${GITHUB_USERNAME}:{GITHUB_TOKEN}@github.com/.insteadOf https://github.com/
- run: git config --global url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/
- uses: technote-space/[email protected]
id: git_diff
with:
Expand Down

0 comments on commit 93eb572

Please sign in to comment.