Skip to content

Sync With Upstream

Sync With Upstream #20

Workflow file for this run

name: 'Sync With Upstream'
on:
schedule:
- cron: '0 0 * * *'
tags-ignore:
- '**'
workflow_dispatch:
env:
upstream_branch: "202411"
jobs:
sync_latest_from_upstream:
runs-on: ubuntu-latest
name: Sync latest commits from upstream repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout sonic-build
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update
run: |
git config --global user.name '[github actions]'
git config --global user.email '[email protected]'
git pull
git remote add upstream https://github.com/sonic-net/sonic-sairedis.git
git fetch upstream
if ! git rebase upstream/${upstream_branch} ; then
while ! git rebase --skip ; do
echo "Skipped Commit"
done
fi
git push --force