You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
904 B

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