Summary
Gets the branch or tag ref that triggered the workflow.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
Syntax
public string Ref { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow Ref: {0}", BuildSystem.GitHubActions.Environment.Workflow.Ref);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow Ref: {0}", GitHubActions.Environment.Workflow.Ref);
}
Value
| Type | Description |
|---|---|
| string | The branch or tag ref that triggered the workflow. |
