File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Sync With Upstream'
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 30 0 * * *'
6
+ tags-ignore :
7
+ - ' **'
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ sync_latest_from_upstream :
12
+ runs-on : ubuntu-latest
13
+ name : Sync latest commits from upstream repo
14
+ if : ${{ !startsWith(github.ref, 'refs/tags/') }}
15
+ steps :
16
+ - uses : tgymnich/fork-sync@v2.0
17
+ with :
18
+ token : ${{ secrets.GITHUB_TOKEN }}
19
+ base : 202405-broadcom
20
+ head : 202405
21
+ merge_method : rebase
22
+
23
+ # Now we need to update the hashes used for sonic-swss and sonic-sairedis
24
+ - name : Checkout sonic-build
25
+ uses : actions/checkout@v4
26
+ with :
27
+ submodules : " recursive"
28
+ fetch-depth : 0
29
+ - name : Update hashes
30
+ run : |
31
+ git config --global user.name '[github actions]'
32
+ git config --global user.email 'bradh352@users.noreply.github.com'
33
+ git pull
34
+ cd src/sonic-swss
35
+ git checkout 202405-broadcom
36
+ git pull
37
+ cd ../sonic-sairedis
38
+ git checkout 202405-broadcom
39
+ git pull
40
+ cd ../..
41
+ git add .
42
+ if git status | grep "nothing to commit" > /dev/null ; then
43
+ echo "nothing to commit"
44
+ else
45
+ git commit -am "update sonic-swss and sonic-sairedis branches"
46
+ git push
47
+ fi
You can’t perform that action at this time.
0 commit comments