You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add deafult_author and start using actions-toolkit
* fix: go back to @actions/core for logs
* chore: add debug after fetching user
* test: keep build not minified
* fix: don't use tools.exit
* fix: author_displayname
* fix: check github_token
* fix: back to minified builds
* fix: fetch email too
* fix: change option names
* docs: document changes
* docs: update "github-actions" example
# - github_actions -> github-actions <email associated with the github logo>
42
+
# Default:
43
+
default_author: github_actor
44
+
38
45
# The message for the commit
39
46
# Default: 'Commit from GitHub Actions (name of the workflow)'
40
47
message: 'Your commit message'
@@ -97,6 +104,8 @@ You can use the `tag` option to enter the arguments for a `git add` command. In
97
104
When pushing, the action uses the token that the local git repository has been configured with: that means that if you want to change it you'll need to do it in the steps that run before this action. For example: if you set up your repo with [`actions/checkout`](https://github.com/actions/checkout/) then you have to add the token there.
98
105
Changing the token with which the repo is configured can be useful if you want to run CI checks on the commit pushed by this action; anyway, it has to be set up outside of this action.
99
106
107
+
The action automatically gets the GitHub token from a `github_token` input: this input should not be modified by the user, since it doesn't affect the commits as it's only used to access the GitHub API to get user info, in case they selected that option for the commit author.
108
+
100
109
### About `actions/checkout`
101
110
102
111
The token you use when setting up the repo with this action will determine what token `add-and-commit` will use.
@@ -120,7 +129,9 @@ For more info on how to use outputs, see ["Context and expression syntax"](https
120
129
121
130
### Examples:
122
131
123
-
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):
132
+
If you don't want to use your GitHub username for the CI commits, you can use the `default_author` option to make it appear as if it was made by "github-actions"
`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).
138
147
139
148
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:
0 commit comments