feature_branch_update.yml 857 B

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