Summary
Gets the number of attempts for current run.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
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. |
