Add author for the format bot

The format bot defaults to using the person who triggered the workflow.
We can use the `author` option to configure a dummy bot author.
This commit is contained in:
Tobin C. Harding 2023-11-20 15:10:40 +11:00
parent 675da34127
commit 6a9713a0cc
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v5 uses: peter-evans/create-pull-request@v5
with: with:
author: Fmt Bot <bot@example.com>
title: Automated nightly rustfmt (${{ env.date }}) title: Automated nightly rustfmt (${{ env.date }})
body: | body: |
Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action