-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Why need to login in CI? #739
Comments
This information is needed to assign the
The above is only relevant to the Git repository (commit/tag/push). On the other hand, the |
Thank you very much 😀. Later i check which variables are available in github actions. |
It seems that in Github actions the best practice is use this: git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" I'll try and I'll let you know 😉 |
Thanks @matteodisabatino, please let me know so we can update the docs. |
@webpro I confirm that with the above settings the CI works (CI settings, the release). Notice that I haven't used the option "--global". Notice also that this a test repo has been created for this purpose only. I'll delete it very soon, probably at the end of the day. |
New syntax seems to be |
Hi,
I made a module in which I use release-it (via Github Actions) to create release and tag but not for publish to npm. Here the code:
The job work fine but I cannot understand why I need to run "git config" if there is an access token. Note that "secrets.GITHUB_TOKEN" is a special access token, generated by CI directly, that owns all permission in the repo; if I use an access token of mine (that I called "secrets.AT") there is no change: I always have to make "git config".
I would like to know if this is normal or if I'm missing something. And if this is the correct behaviour, I would like to know if there is a clean way that let me avoid specify my personal information (although they are public).
Thanks in advance.
The text was updated successfully, but these errors were encountered: