split sync process

This commit is contained in:
StageGuard
2021-12-04 11:33:42 +08:00
parent d3785c3629
commit 19346b1aca

View File

@@ -3,7 +3,7 @@ name: Sync
on: [ push ] on: [ push ]
jobs: jobs:
build: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -24,6 +24,14 @@ jobs:
author_email: 41898282+github-actions[bot]@users.noreply.github.com author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: Update git tree hash message: Update git tree hash
push: true push: true
sync-to-gitea:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
if: github.actor != 'github-actions[bot]'
with:
persist-credentials: true
- name: Sync to Private Git Service - name: Sync to Private Git Service
uses: wearerequired/git-mirror-action@master uses: wearerequired/git-mirror-action@master
if: github.actor != 'github-actions[bot]' if: github.actor != 'github-actions[bot]'
@@ -32,6 +40,14 @@ jobs:
with: with:
source-repo: git@github.com:StageGuard/SkyAutoPlayerScript.git source-repo: git@github.com:StageGuard/SkyAutoPlayerScript.git
destination-repo: ubuntu@cdn.stagex.top:StageGuard/SkyAutoPlayerScript.git destination-repo: ubuntu@cdn.stagex.top:StageGuard/SkyAutoPlayerScript.git
sync-to-gitee:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
if: github.actor != 'github-actions[bot]'
with:
persist-credentials: true
- name: Sync to Gitee - name: Sync to Gitee
uses: wearerequired/git-mirror-action@master uses: wearerequired/git-mirror-action@master
if: github.actor != 'github-actions[bot]' if: github.actor != 'github-actions[bot]'