Summary
Gets the commit SHA.
- Namespace
- Cake
.Common .Build .WoodpeckerCI .Data - Containing Type
- Woodpecker
C I Commit Info
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. |