feature_branch_update.yml
904 bytes
1name: Update feature branches after develop merge
2
3permissions:
4 contents: write
5
6on:
7 push:
8 branches:
9 - develop
10
11jobs:
12 feature_branch_update:
13 runs-on: ubuntu-latest
14
15 if: github.repository == 'qmk/qmk_firmware'
16
17 strategy:
18 matrix:
19 branch:
20 - xap
21 - riot
22
23 steps:
24 - uses: actions/checkout@v4
25 with:
26 token: ${{ secrets.QMK_BOT_TOKEN }}
27 fetch-depth: 0
28
29 - name: Disable automatic eol conversion
30 run: |
31 echo "* -text" > .git/info/attributes
32
33 - name: Checkout branch
34 run: |
35 git fetch origin develop ${{ matrix.branch }}
36 git checkout ${{ matrix.branch }}
37
38 - name: Update branch from develop
39 run: |
40 git config --global user.name "QMK Bot"
41 git config --global user.email "hello@qmk.fm"
42 git merge origin/develop
43 git push origin ${{ matrix.branch }}