-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (47 loc) · 1.36 KB
/
upstream-sync.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
name: "Upstream Sync"
on:
schedule:
# at 07:00 every Monday and Thursday
- cron: "0 7 * * 1,4"
pull_request:
branches:
- master
- main
workflow_dispatch:
jobs:
poky_branch:
runs-on: ubuntu-latest
name: Poky branch
strategy:
matrix:
branch:
- dunfell
- honister
- kirkstone
- thud
- warrior
- pyro
- rocko
- sumo
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
# https://github.com/aormsby/Fork-Sync-With-Upstream-action
- name: Sync upstream commits
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: ${{ matrix.branch }}
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_branch: ${{ matrix.branch }}
host_domain: git.yoctoproject.org
upstream_sync_repo: git/poky
test_mode: ${{ github.event_name == 'pull_request' }}
- name: New commits synced
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were synced." >> $GITHUB_STEP_SUMMARY
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits." >> $GITHUB_STEP_SUMMARY