GitHubActionsWorkflowInfo.

RetentionDays Property

Summary

Gets the number of days that workflow run logs and artifacts are kept.

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.