GitHubActionsRunnerInfo.

Temp Property

Summary

Gets the path of the temporary directory for the runner.

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.