GitHubActionsWorkflowInfo.

RefName Property

Summary

Gets the branch or tag name that triggered the workflow run.

Syntax

public string RefName { get; }

Examples

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

Value

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