Summary
Gets the path of the directory containing some of the pre-installed tools for GitHub-hosted runners.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runner Info
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. |
