-
-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (36 loc) · 956 Bytes
/
sync.yml
File metadata and controls
40 lines (36 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Sync
on:
push:
workflow_dispatch:
permissions:
contents: write
jobs:
changes:
runs-on: ubuntu-latest
outputs:
spiders: ${{ steps.filter.outputs.spiders }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
spiders:
- 'ComicSpider/spiders/**'
- 'utils/website/**'
- 'deploy/**'
sync-gitee:
needs: changes
if: ${{ needs.changes.outputs.spiders == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Mirror the Github organization repos to Gitee.
uses: Yikun/hub-mirror-action@master
with:
src: github/jasoneri
dst: gitee/json_eri
dst_key: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: "ComicGUISpider"
force_update: true
clone_style: "ssh"