forked from rustdesk/rustdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 961 Bytes
/
sync.yml
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 Fork with Upstream
on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC (adjust the time as needed)
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1 # Fetch shallow history
- name: Set up Git
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
- name: Unshallow the Git history
run: git pull --unshallow
- name: Add Upstream and Fetch
run: |
git remote add upstream https://github.com/rustdesk/rustdesk.git
git fetch upstream
- name: Merge upstream/master into local master
run: |
git checkout master
git merge --no-edit upstream/master
- name: Push changes to the fork
run: git push origin master