-
Notifications
You must be signed in to change notification settings - Fork 0
Set up git user/email when tagging the crate release #30
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
Set up git user/email when tagging the crate release #30
Conversation
I am just going to leave a comment, even though I am not a reviewer. I don't know the (best) practice for this, but does it make sense to configure it to match the person who clicked the button, instead of some GitHub bot information? |
I've considered pulling the I'm not sure there's a best practice per se, but from what I've seen people tend to stick to making it clear that GitHub Actions is the one doing those actions, even if it's on behalf of someone else. I don't have anything against going the other way either, however I thought it was best to "stick by the book" to get the workflow working as soon as possible without spending too much time on which username to use. It can always be changed in the future. |
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be "TBTLDevops" or something? We have this https://github.com/tbtldevops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or set the name to e.g. TBTL Tech
and email to [email protected]
. 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github-actions
is the actual bot user and suggested in actions/checkout
README. You can see examples of that in our internal repos (e.g., commenting on PRs).
46f7086
to
450e413
Compare
While running on github-hosted runners, it's necessary to manually set up git user/email (actions/checkout#13) for the time being. The user/email used was taken from a suggestion in `actions/checkout` README: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token
450e413
to
8326bab
Compare
A dry-run was made on the yet-to-be-released Everything went well, except that git pushing of the tag & publishing of the crate were run with |
While running on github-hosted runners, it's necessary to manually set up git user/email (actions/checkout#13) for the time being.
The user/email used was taken from a suggestion in
actions/checkout
README:https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token