forked from sfall-team/sfall
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (66 loc) · 2.19 KB
/
sync-upstream.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Sync with upstream
on:
schedule:
- cron: "33 7 * * *"
workflow_dispatch: # click the button on Github repo!
push:
jobs:
sync_master: # master follows upstream strictly
runs-on: ubuntu-latest
name: Sync master with upstream/master
steps:
- name: Checkout master
uses: actions/checkout@v3
with:
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
- name: Pull (Fast-Forward) upstream changes
id: sync-master
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: sfall-team/sfall
upstream_sync_branch: master
upstream_pull_args: "--ff-only --tags"
target_sync_branch: master
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
shallow_since: "10 years"
sync_better_docs:
runs-on: ubuntu-latest
name: Sync better-docs with upstream/master
steps:
- name: Checkout better-docs
uses: actions/checkout@v3
with:
ref: better-docs
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Pull (Fast-Forward) upstream changes (better-docs)
id: sync-better-docs
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: sfall-team/sfall
upstream_sync_branch: master
upstream_pull_args: "--tags"
target_sync_branch: better-docs
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
shallow_since: "10 years"
sync_develop:
runs-on: ubuntu-latest
name: Sync develop with upstream/develop
steps:
- name: Checkout develop
uses: actions/checkout@v3
with:
ref: better-docs
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Pull (Fast-Forward) upstream changes (develop)
id: sync-develop
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: sfall-team/sfall
upstream_sync_branch: develop
upstream_pull_args: "--ff-only --tags"
target_sync_branch: develop
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
shallow_since: "10 years"