chore(release): 准备 3.8.2 #78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Code | |
| on: | |
| push: {} | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fetch All Branches | |
| run: git fetch origin "+refs/heads/*:refs/zmusic-sync/heads/*" --prune | |
| - name: Sync to Codeberg | |
| continue-on-error: true | |
| env: | |
| CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }} | |
| run: | | |
| git remote add codeberg "https://zhenxin:${CODEBERG_TOKEN}@codeberg.org/starhui-dev/zmusic-mod.git" | |
| git push codeberg "refs/zmusic-sync/heads/*:refs/heads/*" --force --prune | |
| git push codeberg --tags --force | |
| - name: Sync to CNB | |
| continue-on-error: true | |
| env: | |
| CNB_TOKEN: ${{ secrets.CNB_TOKEN }} | |
| run: | | |
| git remote add cnb "https://cnb:${CNB_TOKEN}@cnb.cool/starhui-dev/zmusic-mod.git" | |
| git push cnb "refs/zmusic-sync/heads/*:refs/heads/*" --force --prune | |
| git push cnb --tags --force |