Sync With Upstream #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
name: Sync latest commits from upstream repo | |
steps: | |
- uses: tgymnich/fork-sync@v2.0 | |
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 'bradh352@users.noreply.github.com' | |
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 |