GitHubActionsWorkflowInfo.

BaseRef Property

Summary

Gets the branch of the base repository.

Syntax

public string BaseRef { get; }

Examples

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

Value

Type Description
string The branch of the base repository. Only set for forked repositories.