GitHubActionsWorkflowInfo.

Attempt Property

Summary

Gets the number of attempts for current run.

Syntax

public int Attempt { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow Attempt: {0}", BuildSystem.GitHubActions.Environment.Workflow.Attempt);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow Attempt: {0}", GitHubActions.Environment.Workflow.Attempt);
}

Value

Type Description
int The attempt number for current run.