From d89e4a99c4f9ff5f0b89bb704fe6e645116b368f Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Wed, 28 Aug 2024 10:53:22 +0200 Subject: [PATCH] +4 --- .github/workflows/upstream pretest.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upstream pretest.yaml b/.github/workflows/upstream pretest.yaml index 3217249d..8c268d66 100644 --- a/.github/workflows/upstream pretest.yaml +++ b/.github/workflows/upstream pretest.yaml @@ -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" @@ -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" @@ -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" @@ -460,8 +463,10 @@ 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 @@ -469,10 +474,12 @@ jobs: 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