GitHubActionsWorkflowInfo.

RunNumber Property

Summary

Gets the unique number for each run of a particular workflow in the repository.

Syntax

public int RunNumber { get; }

Examples

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

Value

Type Description
int The unique number for each run of a particular workflow in the repository.