GitHubActionsWorkflowInfo.

RefType Property

Summary

Gets the type of ref that triggered the workflow run.

Syntax

public GitHubActionsRefType RefType { get; }

Examples

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

Value

Type Description
GitHubActionsRefType The type of ref that triggered the workflow run. Valid values are branch or tag.