Skip to content

Commit 030420d

Browse files
committed
sync with upstream
1 parent 6e0b609 commit 030420d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/sync_upstream.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 'Sync With Upstream'
2+
3+
on:
4+
schedule:
5+
- cron: '30 0 * * *'
6+
# scheduled at 00:30 daily
7+
workflow_dispatch:
8+
9+
jobs:
10+
sync_latest_from_upstream:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
name: Sync latest commits from upstream repo
15+
16+
steps:
17+
- uses: tgymnich/fork-sync@v2.0
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
base: master-broadcom
21+
head: master
22+
merge_method: rebase
23+
24+
# Now we need to update the hashes used for sonic-swss and sonic-sairedis
25+
- name: Checkout sonic-build
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: "recursive"
29+
fetch-depth: 0
30+
- name: Update hashes
31+
run: |
32+
git config --global user.name '[github actions]'
33+
git config --global user.email 'bradh352@users.noreply.github.com'
34+
cd src/sonic-swss
35+
git checkout master-broadcom
36+
cd ../sonic-sairedis
37+
git checkout master-broadcom
38+
cd ../..
39+
git add .
40+
git commit -am "update sonic-swss and sonic-sairedis branches"
41+
git push

0 commit comments

Comments
 (0)