Create merge-upstream.yml

This commit is contained in:
tofuliang 2020-02-18 16:28:50 +08:00 committed by GitHub
parent 0bc0aa40e3
commit a0e63d0eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

34
.github/workflows/merge-upstream.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Merge-upstream
on:
push:
branches:
- master
schedule:
- cron: 20 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 "tofuliang@gmail.com"
git config --global user.name "tofuliang"
- name: Load upstream commits
run: git pull https://github.com/coolsnowwolf/packages.git --no-edit --strategy-option ours
- name: Push Commits
env:
DOWNSTREAM_BRANCH: master
run: git push origin $DOWNSTREAM_BRANCH