Skip to content

Commit 7451ee8

Browse files
rugkEndBug
andauthored
Add instructions on how to user a different user (#140)
* Add instructions on how to user a different user * Fix wording * Use special GitHub-provided mail for push examples * Apply suggestions from code review Co-authored-by: Federico Grandi <[email protected]>
1 parent 02188ba commit 7451ee8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,21 @@ For more info on how to use outputs, see ["Context and expression syntax"](https
104104

105105
### Examples:
106106

107+
If you don't want to use your GitHub username for the CI commits, you can [also use the user provided by GitHub for this task](https://github.com/actions/checkout/#push-a-commit-using-the-built-in-token):
108+
```yaml
109+
on: push
110+
jobs:
111+
build:
112+
runs-on: ubuntu-latest
113+
steps:
114+
- uses: EndBug/[email protected]
115+
with:
116+
author_name: github-actions
117+
author_email: 41898282+github-actions[bot]@users.noreply.github.com
118+
```
119+
120+
`41898282+github-actions[bot]@users.noreply.github.com` is the mail of the original GitHub Actions bot. If you use that, [the GitHub avatar is shown for the commits](https://github.community/t/github-actions-bot-email-address/17204).
121+
107122
Do you want to lint your JavaScript files, located in the `src` folder, with ESLint, so that fixable changes are done without your intervention? You can use a workflow like this:
108123

109124
```yaml

0 commit comments

Comments
 (0)