mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 23:01:39 +08:00
Create merge-upstream.yml
This commit is contained in:
parent
0bc0aa40e3
commit
a0e63d0eb4
34
.github/workflows/merge-upstream.yml
vendored
Normal file
34
.github/workflows/merge-upstream.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user