@@ -26,6 +26,9 @@ jobs:
|
||||
|
||||
- name: Configure Mirror
|
||||
run: |
|
||||
$fileName = "github_mirror.lua"
|
||||
$currentDir = Get-Location
|
||||
$absoluteFilePath = Join-Path $currentDir $fileName
|
||||
$luaContent = @'
|
||||
function mirror(url)
|
||||
url = url:gsub("github.com", "github.bibk.top")
|
||||
@@ -35,8 +38,9 @@ jobs:
|
||||
return true
|
||||
end
|
||||
'@
|
||||
$luaContent | Out-File -FilePath "github_mirror.lua" -Encoding utf8
|
||||
xmake g --proxy_pac=github_mirror.lua
|
||||
$luaContent | Out-File -FilePath $absoluteFilePath -Encoding utf8
|
||||
Write-Host "Mirror config generated at: $absoluteFilePath"
|
||||
xmake g --proxy_pac=$absoluteFilePath
|
||||
shell: powershell
|
||||
|
||||
- name: Update Repo
|
||||
|
||||
Reference in New Issue
Block a user