Summary
Gets the path of the temporary directory for the runner.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runner Info
Syntax
public DirectoryPath Temp { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Runner Temp: {0}", BuildSystem.GitHubActions.Environment.Runner.Temp);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Runner Temp: {0}", GitHubActions.Environment.Runner.Temp);
}
Value
| Type | Description |
|---|---|
| DirectoryPath | The path of the temporary directory for the runner. This directory is guaranteed to be empty at the start of each job, even on self-hosted runners. |
