Skip to content

Commit

Permalink
+3
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 28, 2024
1 parent 6079432 commit 76beb40
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,19 +460,21 @@ jobs:
git config -l
if (-not $?) { throw "git config -l failed" }
$main_repo_dir = './core'
New-Item -ItemType Directory -Path $main_repo_dir | Out-Null
Push-Location $main_repo_dir
$main_repo_url = '${{ github.server_url }}/${{ github.repository }}'
Write-Host "Cloning main repo [$main_repo_url]"
git init
if (-not $?) { throw "git init failed" }
git remote add origin $main_repo_url
if (-not $?) { throw "git remote add failed" }
git config --local --name-only --get-regexp core\.sshCommand
git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${{ secrets.GITHUB_TOKEN }}"
if (-not $?) { throw "git config failed" }
git config -l
if (-not $?) { throw "git config -l failed" }
git remote add origin $main_repo_url
if (-not $?) { throw "git remote add failed" }
git -c protocol.version=2 fetch --no-tags --prune --depth=1 origin --filter=tree:0 --no-progress
if (-not $?) { throw "git fetch failed" }
Expand Down

0 comments on commit 76beb40

Please sign in to comment.