-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow custom author #26
allow custom author #26
Conversation
Thanks for the PR. I will take a closer look over the next couple of days. |
It seems that triggering github pages doesn't work anyway. I tried here: https://github.com/it-projects-llc/shhvshhshhshh-rukovodstvo-polzovatelia/blob/12.0/.github/workflows/rebuild.yml In another project the idea does work with another action, which use another authentication. Details: |
This update could be added too yelizariev@2ab971c |
Some information can be found here: maxheld83/ghpages#18 They also use that way of authentication
@stefanzweifel what do you think about switching to that authentication? Shall I update my PR or you can try and make updates yourself? |
Another reason to use custom token: branch may be protected for pushing without checks. In that case, we may create a token with admin access. Apparently, the current version doesn't work in this case too |
Thanks for all your comments and notes! Here are some of my thoughts around this: When I read your changes correctly, this change will remove the double authors from the commit (related to "But it doesn't work without changing the committer email. But as we change committer, it makes sense to change the author too.") We once had the option to set You've mentioned that the change of updating the committer didn't trigger a deployment of GitHub pages. Is this still the case? I'm open to change how the authentication works. Version A:
Version B:
v2 of the checkout action has been released recently. They mention, that they have changed how the auth token is stored.
Maybe we can remove the authentication part of the action completley, if v2 of checkout works reliably. To be honest, my main concern currently is that changes break the action for others. Developing and debugging Actions feels very frustrating right now. I also have to re-read the Actions docs. So much stuff seems to have changes since I last looked at it. |
@stefanzweifel I think to split the discussion into different issues. The first one about authentication is here: #28 |
I did this PR without understanding why do we need separate Author and Committer names. I just released that it makes sense in pull_request context. Let's discuss it here: #29 |
Updates:
commit_author_name
,commit_author_email
'Motivation:
default token has limitations. For example, it doesn't trigger deployment of Github Pages. The solution is using a custom token. But it doesn't work without changing the committer email. But as we change committer, it makes sense to change the author too.
Tested here: