Skip to content

Commit

Permalink
Update force-sync-v1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Wei-666 committed Jun 29, 2024
1 parent 0b1e37e commit 798dd5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/force-sync-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:

jobs:
sync:
if: github.repository == 'MoomFE/mixte'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -22,9 +24,9 @@ jobs:
- name: Add Fork Repository
run: git remote add fork https://github.com/Zhang-Wei-666/mixte-v1.git

- name: Delete v1 Branch on Fork
- name: Delete v1 Branch on Fork (if exists)
run: |
git push fork --delete v1
git push fork --delete v1 || echo "Branch v1 not found, skipping deletion"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Expand Down

0 comments on commit 798dd5a

Please sign in to comment.