-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Error: Cannot read property 'login' of null #187
Comments
May it be the case that the user whose token is used in the action also needs to have a fork of the repo? It looks like in file const client = github.getOctokit(GITHUB_TOKEN, { previews: [ 'flash', 'ant-man' ] }) which then operates under the user. Further down in the file, the property |
If anyone else is facing this issue, pinning the action to v1.9.0 is a temporary work around confirmed by @wottpal (yieldgate/yieldgate#14 (comment)) The issue might be caused by one of the last dependency updates which broke something internal, will take a closer look sometime this week. |
I did the workaround and still getting the same error @BetaHuhn |
yep also getting this error |
@BetaHuhn I'm not sure but would this be something to do with how you request the api features? I'm having trouble finding documentation about this aspect on github.
Another thing is, does
answer: looks like your pulling values from this shape: {
"commit": {
"author": {
"name": string
}
},
"author": {
"login": string
}
} but if you look at the JSONSchema of that |
I just encountered this issue with my team: some of my colleagues were able to deploy, others not. It drove me crazy! And I refused to believe that the But I think I found it, and it is kind of dumb: I noticed that some of my colleagues used an email in their git configuration which was not added to their Github profile. And indeed, after rectification, everything went well! Hope this can help! |
|
@BetaHuhn should be reopened probably. |
I can fully confirm the finding by @Elindorath. It must be some coincidence that it suddenly worked for me that day. Can you add this requirement to the Readme, please, @BetaHuhn? |
|
… |
Fixed by adding an email and name to the .gitconfig file |
Hello, just update from my side, from few days we have the same issue:
Currently we are using BetaHuhn/[email protected] We were trying to change version for: but the issue was not resolved. What we tried as well is to set: and it's not working as well. Is there any update about issue? |
I got same issue |
I used the proposal written by @Elindorath above Run the following Then made a small change to a random file and commited, pushed and then it worked! Maybe this would solve your issues also? @krystiankedra and @jerrywu001 |
Ran into the same problem on one machine. Turned out I had a typo in the git config user.email. Ran |
While deploying I get the following error, do you have any ideas?
The deploy script is basically copy'n'paste from the docs:
The text was updated successfully, but these errors were encountered: