Skip to content

Commit 256e171

Browse files
committed
ci: auto-sync personal with upstream/dev daily
1 parent 429b507 commit 256e171

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Sync personal with upstream/dev
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Daily at midnight UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
if: github.repository != 'open-webui/open-webui'
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout personal branch
17+
uses: actions/checkout@v4
18+
with:
19+
ref: personal
20+
fetch-depth: 0
21+
22+
- name: Configure git
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
27+
- name: Fetch upstream
28+
run: |
29+
git remote add upstream https://github.com/open-webui/open-webui.git
30+
git fetch upstream dev
31+
32+
- name: Rebase onto upstream/dev
33+
run: git rebase upstream/dev
34+
35+
- name: Force push
36+
run: git push --force origin personal

0 commit comments

Comments
 (0)