forked from KFERMercer/OpenWrt-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge-upstream.yml
43 lines (34 loc) · 845 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
43
#
# 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: 30 19 * * *
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: master
fetch-depth: 0
lfs: true
- name: Set git identity
run : |
git config --global user.email "KFER.Mercer@gmail.com"
git config --global user.name "KFERMercer"
- 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