Commit 3b61953 1 parent 782bfd3 commit 3b61953 Copy full SHA for 3b61953
File tree 1 file changed +57
-0
lines changed
1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # This is free software, lisence use MIT.
3
+ #
4
+ # Copyright (C) 2021 KFERMercer <[email protected] >
5
+ #
6
+ # <https://github.com/KFERMercer/OpenWrt-CI>
7
+ #
8
+
9
+ name : Merge-upstream
10
+
11
+ on :
12
+ push :
13
+ branches :
14
+ - master
15
+ schedule :
16
+ - cron : 30 19 * * *
17
+
18
+ jobs :
19
+
20
+ merge :
21
+
22
+ runs-on : ubuntu-latest
23
+
24
+ steps :
25
+
26
+ - name : Checkout
27
+ uses : actions/checkout@v2
28
+ with :
29
+ ref : master
30
+ fetch-depth : 0
31
+ lfs : true
32
+
33
+ - name : Set git config
34
+ run : |
35
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
36
+ git config --global user.name "github-actions[bot]"
37
+ git config --global pull.rebase false
38
+ git config --global --list
39
+
40
+ - name : Load upstream commits
41
+ run : git pull https://github.com/coolsnowwolf/lede.git --log --no-commit
42
+
43
+ - name : Apply commit changes
44
+ run : |
45
+ if [ -f ./.git/MERGE_MSG ]; then
46
+ mkdir ./tmp && cp ./.git/MERGE_MSG ./tmp/message
47
+ sed -i "1c [bot] AutoMerging: merge all upstream's changes:" ./tmp/message
48
+ # sed -i '/^\#.*/d' ./tmp/message
49
+ git commit --file="./tmp/message"
50
+ else
51
+ echo "There is no merge commits."
52
+ fi
53
+
54
+ - name : Push Commits
55
+ env :
56
+ DOWNSTREAM_BRANCH : master
57
+ run : git push origin $DOWNSTREAM_BRANCH
You can’t perform that action at this time.
0 commit comments