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.

46 lines
1020 B

  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: qmkfm/qmk_cli
  13. steps:
  14. - name: Disable safe.directory check
  15. run : git config --global --add safe.directory '*'
  16. - uses: actions/checkout@v3
  17. - name: Run qmk generators
  18. run: |
  19. util/regen.sh
  20. git diff
  21. - uses: rlespinasse/github-slug-action@v3.x
  22. - name: Become QMK Bot
  23. run: |
  24. git config user.name 'QMK Bot'
  25. git config user.email 'hello@qmk.fm'
  26. - name: Create Pull Request
  27. uses: peter-evans/create-pull-request@v4
  28. if: ${{ github.repository == 'qmk/qmk_firmware'}}
  29. with:
  30. token: ${{ secrets.QMK_BOT_TOKEN }}
  31. delete-branch: true
  32. branch: bugfix/regen_${{ env.GITHUB_REF_SLUG }}
  33. author: QMK Bot <hello@qmk.fm>
  34. committer: QMK Bot <hello@qmk.fm>
  35. commit-message: Regenerate Files
  36. title: '[CI] Regenerate Files'