optimize action flow
This commit is contained in:
4
.github/workflows/sync.yml
vendored
4
.github/workflows/sync.yml
vendored
@@ -3,7 +3,7 @@ name: Sync
|
|||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update-commit-hash:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -26,6 +26,7 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
sync-to-gitea:
|
sync-to-gitea:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: update-commit-hash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -42,6 +43,7 @@ jobs:
|
|||||||
destination-repo: ubuntu@cdn.stagex.top:StageGuard/SkyAutoPlayerScript.git
|
destination-repo: ubuntu@cdn.stagex.top:StageGuard/SkyAutoPlayerScript.git
|
||||||
sync-to-gitee:
|
sync-to-gitee:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: update-commit-hash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user