Create main.yml
This commit is contained in:
Родитель
54dc3a4621
Коммит
23c414e3ef
|
@ -0,0 +1,29 @@
|
|||
# .github/workflows/example.yml
|
||||
|
||||
name: Merge upstream branches
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# actually, ~5 minutes is the highest
|
||||
# effective frequency you will get
|
||||
- cron: '0 * * * *'
|
||||
jobs:
|
||||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Merge upstream
|
||||
run: |
|
||||
git config --global user.name 'bot'
|
||||
git config --global user.email 'bot@noreply.com'
|
||||
|
||||
# "git checkout master" is unnecessary, already here by default
|
||||
git pull --unshallow # this option is very important, you would get
|
||||
# complains about unrelated histories without it.
|
||||
# (but actions/checkout@v2 can also be instructed
|
||||
# to fetch all git depth right from the start)
|
||||
git remote add upstream https://github.com/microsoft/fluentui-system-icons.git
|
||||
git fetch --all
|
||||
git checkout master
|
||||
git pull --rebase upstream master
|
||||
git push -f origin master
|
Загрузка…
Ссылка в новой задаче