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