Skip to content

Commit

Permalink
sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Nov 19, 2024
1 parent 6e0b609 commit 030420d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/sync_upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Sync With Upstream'

on:
schedule:
- cron: '30 0 * * *'
# scheduled at 00:30 daily
workflow_dispatch:

jobs:
sync_latest_from_upstream:
runs-on: ubuntu-latest
permissions:
contents: write
name: Sync latest commits from upstream repo

steps:
- uses: tgymnich/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: master-broadcom
head: master
merge_method: rebase

# Now we need to update the hashes used for sonic-swss and sonic-sairedis
- name: Checkout sonic-build
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- name: Update hashes
run: |
git config --global user.name '[github actions]'
git config --global user.email '[email protected]'
cd src/sonic-swss
git checkout master-broadcom
cd ../sonic-sairedis
git checkout master-broadcom
cd ../..
git add .
git commit -am "update sonic-swss and sonic-sairedis branches"
git push

0 comments on commit 030420d

Please sign in to comment.