Summary
Gets the number of days that workflow run logs and artifacts are kept.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
Syntax
public int RetentionDays { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow RetentionDays: {0}", BuildSystem.GitHubActions.Environment.Workflow.RetentionDays);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow RetentionDays: {0}", GitHubActions.Environment.Workflow.RetentionDays);
}
Value
| Type | Description |
|---|---|
| int | The number of days that workflow run logs and artifacts are kept. |
