Improve example workflow#35
Conversation
|
This is how pull requests and commits made through the file uploader/editor on GitHub.com are created as well. The author being the noreply email from the current user and the committer being That email Dependabot uses is an actual account: https://api.github.com/users/dependabot-preview%5Bbot%5D It turns out that GitHub Actions has an account tied to it as well: https://api.github.com/users/github-actions%5Bbot%5D (You'll have seen this account show up if you use So ideally, a commit made by a workflow should be created with |
|
What that |
|
@tenhobi It's the user id of the Github Actions account/bot. EDIT: I should probably also explain that any commit created on GitHub.com (or by a GitHub owned bot like Dependabot) always use the email You can find your unique email under "Keep my email addresses private" in https://github.com/settings/emails Mine is |
|
@kevinvanrijn Yes, it would be nice if you added a short note on that. Then, this is good to go! |
This makes 3 changes to the example workflow:
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>as the author andGitHub <noreply@github.com>as the committer. (Explanation in the comment below.)Example:
Opinions?