We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbc130 commit 8db2924Copy full SHA for 8db2924
.github/workflows/sync.yml
@@ -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