Skip to content

Commit

Permalink
Use git-config from PelionIoT/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JanneKiiskila committed Apr 4, 2024
1 parent 131a751 commit 3773054
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/PR-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
go-version: ${{ matrix.golang-ver }}
- name: Golang version
run: go version
- name: Set GitHub access token via git config
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "[email protected]:"
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf "https://github"
- name: Set access token for internal repo access
uses: PelionIoT/actions/.github/actions/git-config@main
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
- run: sudo apt install golint
- run: git clone [email protected]:PelionIoT/scripts-internal.git
- name: Build all
Expand All @@ -43,10 +43,10 @@ jobs:
pysh-check:
runs-on: ubuntu-latest
steps:
- name: Set GitHub access token via git config
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "[email protected]:"
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf "https://github"
- name: Set access token for internal repo access
uses: PelionIoT/actions/.github/actions/git-config@main
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
- name: Check out code
uses: actions/checkout@v4
- run: git clone [email protected]:PelionIoT/scripts-internal.git
Expand Down

0 comments on commit 3773054

Please sign in to comment.