diff --git a/.github/workflows/scripts/common-utils.ps1 b/.github/workflows/scripts/common-utils.ps1 index c664ddb383e07..d0a93d7cb1a64 100644 --- a/.github/workflows/scripts/common-utils.ps1 +++ b/.github/workflows/scripts/common-utils.ps1 @@ -9,8 +9,8 @@ function SetGitCachingProxy { git config --global --add url.http://git-cdn-github.botmaster.tgr/.insteadOf https://github.com/ git config --global --add url.http://git-cdn-github.botmaster.tgr/.insteadOf git@github.com: # git config --global --add url.http://git-cdn-gitlab.botmaster.tgr/.insteadOf https://gitlab.com/ - git config --global credential.helper store - "http://oauth2:${env:GITHUB_TOKEN}@git-cdn-github.botmaster.tgr" | Out-File -FilePath ~\.git-credentials + git config --global credential.helper "store --file $env:HOME\.git-credentials" + "http://oauth2:${env:GITHUB_TOKEN}@git-cdn-github.botmaster.tgr" | Out-File -FilePath $env:HOME\.git-credentials } if($env:TI_USE_GIT_CACHE) {