GitHubActionsRuntimeInfo.

IsRuntimeAvailable Property

Summary

Gets a value indicating whether the GitHub Actions Runtime is available for the current build.

Syntax

public bool IsRuntimeAvailable { get; }

Examples

if (BuildSystem.GitHubActions.Environment.Runtime.IsRuntimeAvailable)
{
    await BuildSystem.GitHubActions.Commands.UploadArtifact(path, name);
}
if (GitHubActions.Environment.Runtime.IsRuntimeAvailable)
{
    await GitHubActions.Commands.UploadArtifact(path, name);
}

Value

Type Description
bool true if the GitHub Actions Runtime is available for the current build.