Summary
Gets the commit SHA for the workflow file.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
Syntax
public string WorkflowSha { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow WorkflowSha: {0}", BuildSystem.GitHubActions.Environment.Workflow.WorkflowSha);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Workflow WorkflowSha: {0}", GitHubActions.Environment.Workflow.WorkflowSha);
}
Value
| Type | Description |
|---|---|
| string | The commit SHA for the workflow file. |
