0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-05 08:25:28 +00:00

优化更新流程

This commit is contained in:
firedcto@gmail.com 2024-11-15 18:22:46 +08:00
parent a6dd560259
commit aa69a4b05a

View File

@ -54,7 +54,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up coding Git credentials - name: Push to Coding.net
env: env:
CODING_USERNAME: ${{ secrets.CODING_USERNAME }} CODING_USERNAME: ${{ secrets.CODING_USERNAME }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }} CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
@ -64,11 +64,8 @@ jobs:
if (-not (Test-Path -Path $credentialsPath -PathType Leaf)) { if (-not (Test-Path -Path $credentialsPath -PathType Leaf)) {
New-Item -ItemType File -Force -Path $credentialsPath New-Item -ItemType File -Force -Path $credentialsPath
} }
"https://${{ secrets.CODING_USERNAME }}:${{ secrets.CODING_PASSWORD }}@e.coding.net" | Out-File -FilePath $credentialsPath -Encoding ASCII echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > $env:HOMEPATH\.git-credentials
git remote add coding https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
- name: Push to Coding.net
run: |
git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
git push coding --force git push coding --force
- name: Push to GitHub update - name: Push to GitHub update