Skip to content

Commit

Permalink
fix git config
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaiba committed Apr 2, 2024
1 parent c5861dc commit a1b0921
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
GH_ACCESS_TOKEN: ${{ secrets.KGW_MACH_SECRET_FOR_KWILDB }}
# vendor is used to bypass private repo issues
run: |
cat ~/.gitconfig
git config --global url."https://${GH_ACCESS_TOKEN}:[email protected]/kwilteam/".insteadOf "https://github.com/kwilteam/"
rm -rf /tmp/kgw
git clone https://github.com/kwilteam/kgw.git /tmp/kgw
Expand All @@ -65,12 +66,6 @@ jobs:
go work vendor
cd -
- name: Unset git config # maybe not needed? since every run is in fresh container?(not sure)
env: # the unset won't work if in same step
GH_ACCESS_TOKEN: ${{ secrets.KGW_MACH_SECRET_FOR_KWILDB }}
run: |
git config --global --unset url."https://${GH_ACCESS_TOKEN}:[email protected]/kwilteam/"
- name: Build kgw image
id: docker_build_kgw
uses: docker/build-push-action@v5
Expand Down

0 comments on commit a1b0921

Please sign in to comment.