Skip to content

Commit

Permalink
Add instructions on how to user a different user (#140)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
rugk and EndBug committed Feb 17, 2021
1 parent 02188ba commit 7451ee8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,21 @@ For more info on how to use outputs, see ["Context and expression syntax"](https

### Examples:

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):
```yaml
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: EndBug/[email protected]
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
```

`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).

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:

```yaml
Expand Down

0 comments on commit 7451ee8

Please sign in to comment.