[CI] Auto Formatting - Swap from direct commit to PR (#11229)
* Swap from direct commit to PR * Fix up
This commit is contained in:
parent
31675c614e
commit
0e8cef28d2
1 changed files with 12 additions and 6 deletions
18
.github/workflows/format.yaml
vendored
18
.github/workflows/format.yaml
vendored
|
@ -28,10 +28,16 @@ jobs:
|
||||||
bin/qmk pyformat
|
bin/qmk pyformat
|
||||||
bin/qmk fileformat
|
bin/qmk fileformat
|
||||||
|
|
||||||
- name: Commit files
|
- name: Become QMK Bot
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
run: |
|
||||||
|
git config user.name 'QMK Bot'
|
||||||
|
git config user.email 'hello@qmk.fm'
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
commit_message: Format code according to conventions for $GITHUB_SHA
|
delete-branch: true
|
||||||
commit_user_name: QMK Bot
|
author: QMK Bot <hello@qmk.fm>
|
||||||
commit_user_email: hello@qmk.fm
|
committer: QMK Bot <hello@qmk.fm>
|
||||||
commit_author: QMK Bot <hello@qmk.fm>
|
commit-message: Format code according to conventions
|
||||||
|
title: '[CI] Format code according to conventions'
|
||||||
|
|
Loading…
Reference in a new issue