forked from open-webui/open-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 888 Bytes
/
Copy pathsync-personal.yml
File metadata and controls
36 lines (29 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Sync personal with upstream/dev
on:
schedule:
- cron: '0 0 * * *' # Daily at midnight UTC
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
if: github.repository != 'open-webui/open-webui'
permissions:
contents: write
steps:
- name: Checkout personal branch
uses: actions/checkout@v4
with:
ref: personal
fetch-depth: 0
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Fetch upstream
run: |
git remote add upstream https://github.com/open-webui/open-webui.git
git fetch upstream dev
- name: Rebase onto upstream/dev
run: git rebase upstream/dev
- name: Force push
run: git push --force origin personal