0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-03 09:25:19 +00:00

优化更新流程

This commit is contained in:
firedcto@gmail.com 2024-11-15 17:43:42 +08:00
parent af8acc4c65
commit a6dd560259

View File

@ -60,7 +60,11 @@ jobs:
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
run: |
git config --global credential.helper store
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > $env:HOMEPATH\.git-credentials
$credentialsPath = [System.IO.Path]::Combine($env:HOMEPATH, ".git-credentials")
if (-not (Test-Path -Path $credentialsPath -PathType Leaf)) {
New-Item -ItemType File -Force -Path $credentialsPath
}
"https://${{ secrets.CODING_USERNAME }}:${{ secrets.CODING_PASSWORD }}@e.coding.net" | Out-File -FilePath $credentialsPath -Encoding ASCII
- name: Push to Coding.net
run: |