GitHubActionsWorkflowInfo.

RefProtected Property

Summary

Gets a value indicating whether if branch protections are configured for the ref that triggered the workflow run.

Syntax

public bool RefProtected { get; }

Examples

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

Value

Type Description
bool Value whether if branch protections are configured for the ref that triggered the workflow run.