Skip to content

Commit 1de265b

Browse files
Create autosync.yaml
Some change of mine - let's see how this goes
1 parent 9ce598f commit 1de265b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/autosync.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Keep fork synced
2+
on:
3+
schedule:
4+
- cron: '* * * * *'
5+
workflow_dispatch:
6+
jobs:
7+
merge:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Merge upstream
12+
run: |
13+
git config --global user.name 'CodingWonders'
14+
git config --global user.email '101426328+CodingWonders@users.noreply.github.com'
15+
16+
git pull --unshallow
17+
18+
git remote add upstream https://github.com/ChrisTitusTech/winutil.git
19+
git fetch upstream
20+
21+
git checkout -b main origin/main
22+
git merge --no-edit upstream/main
23+
git push origin main

0 commit comments

Comments
 (0)