GitHubActionsWorkflowInfo.

WorkflowSha Property

Summary

Gets the commit SHA for the workflow file.

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.