GitHubActionsEnvironmentInfo.

Home Property

Summary

Gets the GitHub Actions home directory.

Syntax

public DirectoryPath Home { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(
        @"Home: {0}",
        BuildSystem.GitHubActions.Environment.Home
        );
}
else
{
    Information("Not running on GitHubActions");
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(
        @"Home: {0}",
        GitHubActions.Environment.Home
        );
}
else
{
    Information("Not running on GitHubActions");
}

Value

Type Description
DirectoryPath The home.