Skip to content

Commit 8db2924

Browse files
authored
Create sync.yml
1 parent 0cbc130 commit 8db2924

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/sync.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: fetch origins
2+
on:
3+
push:
4+
branches: main
5+
schedule:
6+
- cron: 0 */48 * * * # 每隔48小时
7+
workflow_dispatch:
8+
jobs:
9+
fetch:
10+
name: fetch origin
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: fetch alist
14+
uses: TobKed/github-forks-sync-action@master
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }} # 令牌
17+
upstream_repository: alist-org/alist-web # 上游仓库
18+
target_repository: the-ccsn/alist-web # 你要推送的仓库
19+
upstream_branch: dev # 默认是拉取上游仓库的 master 分支
20+
target_branch: main # 默认推送到你的仓库 master 分支
21+
force: false # 是否强制推送
22+
tags: true # 确定是否使用 - tags

0 commit comments

Comments
 (0)