BuildSystem.

IsRunningOnGitHubActions Property

Summary

Gets a value indicating whether this instance is running on GitHub Actions.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsRunningOnGitHubActions { get; }

Examples

if (BuildSystem.IsRunningOnGitHubActions)
{
    // Get the workflow name.
    var workflow = BuildSystem.GitHubActions.Environment.Workflow.Workflow;
}

Value

Type Description
bool true if this instance is running on GitHub Actions; otherwise, false.