forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.02 KB
/
mgor-merge-upstream.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'mgor: Merge upstream master'
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
mgor-merge-upstream:
runs-on: ubuntu-latest
container: ghcr.io/qmk/qmk_cli:latest
if: github.repository == 'mgor/qmk_firmware'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: mgor
fetch-depth: 0
- name: Add upstream
run: |
git config --global --add safe.directory /__w/qmk_firmware/qmk_firmware
git config --global user.email "[email protected]"
git config --global user.name "Automated by Mikael Göransson"
git remote add -f upstream https://github.com/qmk/qmk_firmware
git remote -v
- name: Fetch and merge upstream
run: |
git fetch upstream
git merge --no-edit upstream/master | awk '/Already up to date/ {exit 1}' || exit 0
- name: Update submodules
run: |
make git-submodule
- name: Push upstream changes
run: |
git push