regen_push.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Regenerate Files
  2. permissions:
  3. contents: write
  4. on:
  5. push:
  6. branches:
  7. - master
  8. - develop
  9. jobs:
  10. regen:
  11. runs-on: ubuntu-latest
  12. container: ghcr.io/qmk/qmk_cli
  13. steps:
  14. - name: Disable safe.directory check
  15. run : git config --global --add safe.directory '*'
  16. - uses: actions/checkout@v4
  17. - name: Install dependencies
  18. run: |
  19. pip3 install -r requirements-dev.txt
  20. - name: Run qmk generators
  21. run: |
  22. util/regen.sh
  23. git diff
  24. - uses: rlespinasse/github-slug-action@v3.x
  25. - name: Become QMK Bot
  26. run: |
  27. git config user.name 'QMK Bot'
  28. git config user.email 'hello@qmk.fm'
  29. - name: Create Pull Request
  30. uses: peter-evans/create-pull-request@v7
  31. if: ${{ github.repository == 'qmk/qmk_firmware'}}
  32. with:
  33. token: ${{ secrets.QMK_BOT_TOKEN }}
  34. delete-branch: true
  35. branch: bugfix/regen_${{ env.GITHUB_REF_SLUG }}
  36. author: QMK Bot <hello@qmk.fm>
  37. committer: QMK Bot <hello@qmk.fm>
  38. commit-message: Regenerate Files
  39. title: '[CI] Regenerate Files'