-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use git-config from PelionIoT/actions
- Loading branch information
1 parent
131a751
commit 3773054
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|