Summary
Gets the username of the user that initiated the workflow run.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
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.
|
