GitHubActionsWorkflowInfo.

Sha Property

Summary

Gets the commit SHA that triggered the workflow.

Syntax

public string Sha { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow Sha: {0}", BuildSystem.GitHubActions.Environment.Workflow.Sha);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow Sha: {0}", GitHubActions.Environment.Workflow.Sha);
}

Value

Type Description
string The commit SHA that triggered the workflow.