Summary
Gets the GitHub Actions home directory.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Environment Info
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. |