GitHub Actions bot email address? #26560
-
I wanted to commit to the repository from within a workflow. Simply running:
works, but GitHub action’s icon doesn’t show up. I couldn’t find the correct email address for the bot anywhere. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
[nvm, readed words wrong] |
Beta Was this translation helpful? Give feedback.
-
This is an expected behavior. In commits author field, it will not show the black github-actions bot icon, just a gray one. It shows the name you specify in git config user.name. Github Actions bot is just a bot account when you do operations with GITHUB_TOKEN. In pull requests, issues page, you can see its icon, but not in commits. Sorry for any inconvenience. |
Beta Was this translation helpful? Give feedback.
-
Would it be easy for GitHub to just assign an email address to the bot account so that commits with that email address would show the bot’s avatar? |
Beta Was this translation helpful? Give feedback.
-
I believe I was able to determine a valid email address to use by copying the format they use for dependabot: https://api.github.com/users/dependabot-preview[bot]/events/public All of the commits are from
…where 27856297 is the user ID for dependabot[bot]. So I tried:
and it seemed to work: |
Beta Was this translation helpful? Give feedback.
-
The email address suggested by @ericnorris actually works:
Using this for https://api.github.com/users/github-actions[bot] seems to be the API entry for the |
Beta Was this translation helpful? Give feedback.
-
Yep! This is amazing. @weibeld +rep to you my dude. Just go to https://api.github.com/users/better-informatics[bot] and use the ID from there :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
When you want to tag commit as GitHub Actions then:
then |
Beta Was this translation helpful? Give feedback.
-
I've created a handy action for that use case Feel free to have look at https://github.com/qoomon/actions--setup-git |
Beta Was this translation helpful? Give feedback.
This is an expected behavior. In commits author field, it will not show the black github-actions bot icon, just a gray one. It shows the name you specify in git config user.name.
Github Actions bot is just a bot account when you do operations with GITHUB_TOKEN. In pull requests, issues page, you can see its icon, but not in commits. Sorry for any inconvenience.