Skip to content

chore(release): 准备 3.8.2 #78

chore(release): 准备 3.8.2

chore(release): 准备 3.8.2 #78

Workflow file for this run

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