GitHubActionsWorkflowInfo.

EventName Property

Summary

Gets the name of the webhook event that triggered the workflow.

Syntax

public string EventName { get; }

Examples

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

Value

Type Description
string The name of the webhook event that triggered the workflow.