optimize action flow

This commit is contained in:
StageGuard
2021-12-04 11:40:01 +08:00
parent c19a62b761
commit 5319dbce67

View File

@@ -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