Is it possible for me to get the username of the workflow_dispatcher?

Hi there,
I have an Action that some users will manually trigger with workflow_dispatch. Is there a way I can get that user’s username as a parameter in the action?

Thank you

IIRC $GITHUB_ACTOR should be set properly in that case.

You can either use the environment variable GITHUB_ACTOR as dawidd6 says, or github.actor in an expression, for example:

steps:
  - name: Actor
    run: echo "${{ github.actor }}"

They are also available if a workflow is triggered by other events, such as push.

Perfect, thanks everyone!