forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 3
107 lines (85 loc) · 3.05 KB
/
synch_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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Sync Upstream
on:
schedule:
- cron: '0 0 */1 * *' # daily 00:00
workflow_dispatch: # on button click
jobs:
synch_master:
runs-on: ubuntu-latest
steps:
- name: Checkout target repo
uses: actions/checkout@v3
with:
ref: master
token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }}
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
target_sync_branch: master
target_repo_token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }}
upstream_sync_branch: master
upstream_sync_repo: micropython/micropython
git_config_pull_rebase: true
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits."
- name: Show value of 'has_new_commits'
run: echo ${{ steps.sync.outputs.has_new_commits }}
synch_port_psoc6:
runs-on: ubuntu-latest
needs: synch_master
steps:
- name: Checkout target repo
uses: actions/checkout@v3
with:
ref: ports-psoc6-main
token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }}
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
target_sync_branch: ports-psoc6-main
target_repo_token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }}
upstream_sync_branch: master
upstream_sync_repo: micropython/micropython
git_config_pull_rebase: true
target_branch_push_args: '--force'
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits."
- name: Show value of 'has_new_commits'
run: echo ${{ steps.sync.outputs.has_new_commits }}
synch_port_psoc6_ifx:
runs-on: ubuntu-latest
needs: synch_port_psoc6
steps:
- name: Checkout target repo
uses: actions/checkout@v3
with:
ref: ports-psoc6-ifx
token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }}
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
target_sync_branch: ports-psoc6-ifx
target_repo_token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }}
upstream_sync_branch: ports-psoc6-main
upstream_sync_repo: infineon/micropython
git_config_pull_rebase: true
target_branch_push_args: '--force'
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits."
- name: Show value of 'has_new_commits'
run: echo ${{ steps.sync.outputs.has_new_commits }}