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