WoodpeckerCICommitInfo.

Sha Property

Summary

Gets the commit SHA.

Syntax

public string Sha { get; }

Examples

if (BuildSystem.WoodpeckerCI.IsRunningOnWoodpeckerCI)
{
    Information(
        @"Commit SHA: {0}",
        BuildSystem.WoodpeckerCI.Environment.Commit.Sha
        );
}
else
{
    Information("Not running on WoodpeckerCI");
}
if (WoodpeckerCI.IsRunningOnWoodpeckerCI)
{
    Information(
        @"Commit SHA: {0}",
        WoodpeckerCI.Environment.Commit.Sha
        );
}
else
{
    Information("Not running on WoodpeckerCI");
}

Value

Type Description
string The commit SHA.