How to get email and account name by Github action automatically

How to read user email and account name of current logged in by Github action automatically? I do not see any enviroment variables for https://docs.github.com/en/actions/learn-github-actions/environment-variables

Not sure what you mean precisely by logged in, but ${{ github.sender.login }} is probably that.

Note that there’s no guarantee that a user has a public email address.

For instance, you don’t:
https://api.github.com/users/zhaoyiming0803

If a user does have a public email address, then that’s how one might get it, here’s a sample account that has one:
https://api.github.com/users/microsoft