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 ]
|
||||
|
||||
jobs:
|
||||
update:
|
||||
update-commit-hash:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -26,6 +26,7 @@ jobs:
|
||||
push: true
|
||||
sync-to-gitea:
|
||||
runs-on: ubuntu-latest
|
||||
needs: update-commit-hash
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -42,6 +43,7 @@ jobs:
|
||||
destination-repo: ubuntu@cdn.stagex.top:StageGuard/SkyAutoPlayerScript.git
|
||||
sync-to-gitee:
|
||||
runs-on: ubuntu-latest
|
||||
needs: update-commit-hash
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
Reference in New Issue
Block a user