Summary
Gets the unique number for each run within the repository.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
Syntax
public string RunId { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow RunId: {0}", BuildSystem.GitHubActions.Environment.Workflow.RunId);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow RunId: {0}", GitHubActions.Environment.Workflow.RunId);
}
Value
| Type | Description |
|---|---|
| string | The unique number for each run within the repository. |
