Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Fix name in "Use template" GitHub action #2

Open
flxai opened this issue Jun 20, 2020 · 2 comments
Open

Fix name in "Use template" GitHub action #2

flxai opened this issue Jun 20, 2020 · 2 comments

Comments

@flxai
Copy link

flxai commented Jun 20, 2020

The action uses the account's user name ($GITHUB_ACTOR) instead of the account's real name (cf.). GitHub itself uses the real name to initialize repositories. This leads to inconsistencies and should therefore be changed IMO.

@soerface
Copy link
Owner

soerface commented Jul 2, 2020

Is it possible to get the real name when the action is being run?

@flxai
Copy link
Author

flxai commented Jul 3, 2020

I don't know. The official docs seem to only list $GITHUB_ACTOR.

Maybe you want to look up the real name using the GitHub API, curl and jq:

REAL_NAME=$(curl -s "https://api.github.com/users/$GITHUB_ACTOR" | jq -r .name)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants