Skip to content

Commit 1845f70

Browse files
authored
Create Merge-upstream.yml
1 parent b50ac69 commit 1845f70

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Merge-upstream
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
# push:
9+
# branches:
10+
# - master
11+
schedule:
12+
- cron: 0 7 * * 2
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
merge:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
22+
- name: Checkout
23+
uses: actions/checkout@master
24+
with:
25+
ref: master
26+
fetch-depth: 0
27+
lfs: true
28+
29+
- name: Set git identity
30+
run : |
31+
git config --global user.email "edgetoo.163.com"
32+
git config --global user.name "Edgetoo"
33+
- name: Load upstream commits
34+
run: git pull https://github.com/ngosang/trackerslist.git --no-edit --strategy-option ours
35+
36+
- name: Push Commits
37+
env:
38+
DOWNSTREAM_BRANCH: master
39+
run: git push origin $DOWNSTREAM_BRANCH

0 commit comments

Comments
 (0)