Skip to content

Commit

Permalink
[增加]1. 增加Next 分支的同步
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Feb 25, 2025
1 parent 20de993 commit d10596e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Sync Github To Image

on:
push:
branches: [main]
#schedule:
branches: [ main,next ]
#schedule:
# 定时任务,每天 UTC 时间 0 点运行
#- cron: "0 0 * * *"
#workflow_dispatch:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

# 拉取
- name: pull and push
run: |
run: |
if [ "${{ github.ref_name }}" ]; then
git checkout ${{ github.ref_name }}
git pull --progress -v --no-rebase gitlink ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:

# 拉取
- name: pull and push
run: |
run: |
if [ "${{ github.ref_name }}" ]; then
git checkout ${{ github.ref_name }}
git pull --progress -v --no-rebase gitlab ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:

# 拉取
- name: pull and push
run: |
run: |
if [ "${{ github.ref_name }}" ]; then
git checkout ${{ github.ref_name }}
git pull --progress -v --no-rebase gitee ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:

# 拉取
- name: pull and push
run: |
run: |
if [ "${{ github.ref_name }}" ]; then
git checkout ${{ github.ref_name }}
git pull --progress -v --no-rebase atomgit ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:

# 拉取
- name: pull and push
run: |
run: |
if [ "${{ github.ref_name }}" ]; then
git checkout ${{ github.ref_name }}
git pull --progress -v --no-rebase gitcode ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;
Expand Down Expand Up @@ -280,7 +280,7 @@ jobs:

# 拉取
- name: pull and push
run: |
run: |
if [ "${{ github.ref_name }}" ]; then
git checkout ${{ github.ref_name }}
git pull --progress -v --no-rebase framagit ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;
Expand Down

0 comments on commit d10596e

Please sign in to comment.