Summary
Gets the unique number for each run of a particular workflow in the repository.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
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. |
