regen_push.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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@v7
  17. - name: Install dependencies
  18. run: pip3 install -r requirements-dev.txt
  19. - name: Run qmk generators
  20. run: |
  21. util/regen.sh
  22. git diff
  23. - uses: rlespinasse/github-slug-action@v5
  24. - name: Become QMK Bot
  25. run: |
  26. git config user.name 'QMK Bot'
  27. git config user.email 'hello@qmk.fm'
  28. - name: Create Pull Request
  29. uses: peter-evans/create-pull-request@v8
  30. if: ${{ github.repository == 'qmk/qmk_firmware'}}
  31. with:
  32. token: ${{ secrets.QMK_BOT_TOKEN }}
  33. delete-branch: true
  34. branch: bugfix/regen_${{ env.GITHUB_REF_SLUG }}
  35. author: QMK Bot <hello@qmk.fm>
  36. committer: QMK Bot <hello@qmk.fm>
  37. commit-message: Regenerate Files
  38. title: '[CI] Regenerate Files'