forked from KFERMercer/OpenWrt-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge-upstream.yml
42 lines (34 loc) · 962 Bytes
/
merge-upstream.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
37
38
39
40
41
42
#
# This is free software, lisence use MIT.
#
# Copyright (C) 2019 KFERMercer <KFER.Mercer@gmail.com>
#
# <https://github.com/KFERMercer/OpenWrt-CI>
#
name: 自动更新-Merge-upstream
on:
push:
branches:
- master
schedule:
- cron: 0 0 * * * # UTC时间,也就是北京时间减去8小时……
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: 检测-Checkout
uses: actions/checkout@master
with:
ref: master
fetch-depth: 0
lfs: true
- name: 设置GIT标识-Set git identity
run : |
git config --global user.email "alanyao820@gmail.com"
git config --global user.name "byalan"
- name: 加载上游提交-Load upstream commits
run: git pull https://github.com/coolsnowwolf/lede.git --no-edit --strategy-option ours
- name: 推送提交-Push Commits
env:
DOWNSTREAM_BRANCH: master
run: git push origin $DOWNSTREAM_BRANCH