GitHubActionsRunnerInfo.

ToolCache Property

Summary

Gets the path of the directory containing some of the pre-installed tools for GitHub-hosted runners.

Syntax

public DirectoryPath ToolCache { get; }

Examples

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

Value

Type Description
DirectoryPath The path of the directory containing some of the pre-installed tools for GitHub-hosted runners.