This commit is contained in:
Jumar Macato 2021-03-26 22:19:10 +08:00 коммит произвёл bot
Родитель 54dc3a4621
Коммит 23c414e3ef
1 изменённых файлов: 29 добавлений и 0 удалений

29
.github/workflows/main.yml поставляемый Normal file
Просмотреть файл

@ -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