Summary
Gets the name of the webhook event that triggered the workflow.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
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. |
