summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-02-06 12:55:50 +0000
committerGitHub <noreply@github.com>2021-02-06 12:55:50 +0000
commit0e8cef28d29d984095d7c6d1ac2d0cf032bdc323 (patch)
tree3af0698f3f5d36d742d67882e9edb1ddc8ba585a /.github
parent31675c614e940e08fa8b400912a011dbb8622150 (diff)
[CI] Auto Formatting - Swap from direct commit to PR (#11229)
* Swap from direct commit to PR * Fix up
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/format.yaml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml
index f4acb944a3..d7347bea98 100644
--- a/.github/workflows/format.yaml
+++ b/.github/workflows/format.yaml
@@ -28,10 +28,16 @@ jobs:
bin/qmk pyformat
bin/qmk fileformat
- - name: Commit files
- uses: stefanzweifel/git-auto-commit-action@v4
+ - name: Become QMK Bot
+ 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:
- commit_message: Format code according to conventions for $GITHUB_SHA
- commit_user_name: QMK Bot
- commit_user_email: hello@qmk.fm
- commit_author: QMK Bot <hello@qmk.fm>
+ delete-branch: true
+ author: QMK Bot <hello@qmk.fm>
+ committer: QMK Bot <hello@qmk.fm>
+ commit-message: Format code according to conventions
+ title: '[CI] Format code according to conventions'