Update force-sync-v1.yml #3
This file contains 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: Force Sync v1 Branch to Fork | |
on: | |
push: | |
branches: | |
- v1 | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: v1 | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Set up Git | |
run: | | |
git config --global user.name 'Zhang-Wei-666' | |
git config --global user.email '994039348@qq.com' | |
- name: Add Fork Repository | |
run: git remote add fork https://github.com/Zhang-Wei-666/mixte-v1.git | |
- name: Delete v1 Branch on Fork | |
run: | | |
git push fork --delete v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Force Push v1 Branch to Fork | |
run: | | |
git push fork v1 --force --exclude=.github/workflows/force-sync-v1.yml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |