GitHubActionsWorkflowInfo.

Ref Property

Summary

Gets the branch or tag ref that triggered the workflow.

Syntax

public string Ref { get; }

Examples

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

Value

Type Description
string The branch or tag ref that triggered the workflow.