Skip to content

Commit

Permalink
Add sync upstream workflow
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <[email protected]>
  • Loading branch information
popcornylu committed May 27, 2024
1 parent 54cac8f commit e1656c0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/recce-prsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@ on:
- cron: '30 17 * * *' # run at 1:30 AM (UTC + 8) everyday

jobs:
sync-upstream:
runs-on: ubuntu-latest

steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
ref: dev

- name: Add Upstream remote
run: git remote add upstream https://github.com/opensource-observer/oso.git

- name: Fetch Upstream
run: git fetch upstream

- name: Rebase from Upstream
run: git rebase upstream/main

- name: Push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git push origin dev
prsync:
runs-on: ubuntu-latest

Expand Down

0 comments on commit e1656c0

Please sign in to comment.