Skip to content

Commit

Permalink
+4
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 28, 2024
1 parent 76beb40 commit d89e4a9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: git config
run: |
git config --global gc.auto 0
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "sunserega2@gmail.com"
Expand Down Expand Up @@ -274,6 +275,7 @@ jobs:
- name: git config
run: |
git config --global gc.auto 0
git config --global core.autocrlf false
git config --global advice.detachedHead false
git config --global user.name "sun pack bot"
Expand Down Expand Up @@ -431,6 +433,7 @@ jobs:
- name: git config
run: |
git config --global gc.auto 0
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "sunserega2@gmail.com"
Expand Down Expand Up @@ -460,19 +463,23 @@ jobs:
Write-Host "=============================="
git config -l
if (-not $?) { throw "git config -l failed" }
Write-Host "=============================="
$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 config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${{ secrets.GITHUB_TOKEN }}"
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${{ github.token }}"
if (-not $?) { throw "git config failed" }
Write-Host "=============================="
git config -l
if (-not $?) { throw "git config -l failed" }
Write-Host "=============================="
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
Expand Down

0 comments on commit d89e4a9

Please sign in to comment.