GitHubActionsWorkflowInfo.

TriggeringActor Property

Summary

Gets the username of the user that initiated the workflow run.

Syntax

public string TriggeringActor { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow TriggeringActor: {0}", BuildSystem.GitHubActions.Environment.Workflow.TriggeringActor);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow TriggeringActor: {0}", GitHubActions.Environment.Workflow.TriggeringActor);
}

Value

Type Description
string The username of the user that initiated the workflow run. On re-runs, this value may differ from Actor.