Summary
Gets a value indicating whether the GitHub Actions Runtime is available for the current build.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runtime Info
Syntax
public bool IsRuntimeAvailable { get; }
Examples
if (BuildSystem.GitHubActions.Environment.Runtime.IsRuntimeAvailable)
{
await BuildSystem.GitHubActions.Commands.UploadArtifact(path, name);
}
if (GitHubActions.Environment.Runtime.IsRuntimeAvailable)
{
await GitHubActions.Commands.UploadArtifact(path, name);
}
Value
| Type | Description |
|---|---|
| bool |
true if the GitHub Actions Runtime is available for the current build.
|
