feature_branch_update.yml 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. steps:
  17. - uses: actions/checkout@v3
  18. with:
  19. token: ${{ secrets.QMK_BOT_TOKEN }}
  20. fetch-depth: 0
  21. - name: Disable automatic eol conversion
  22. run: |
  23. echo "* -text" > .git/info/attributes
  24. - name: Checkout branch
  25. run: |
  26. git fetch origin develop ${{ matrix.branch }}
  27. git checkout ${{ matrix.branch }}
  28. - name: Update branch from develop
  29. run: |
  30. git config --global user.name "QMK Bot"
  31. git config --global user.email "hello@qmk.fm"
  32. git merge origin/develop
  33. git push origin ${{ matrix.branch }}