Closed Xemrox closed 2 years ago
Cool, thanks 💐
I forgot to mention with this change we also need to update the AttachCommand
:
private static string GetCondition(XContainer doc)
{
var condition = "'$(HUSKY)' != 0";
var targetFrameworks = doc.Descendants("PropertyGroup").Descendants("TargetFrameworks").FirstOrDefault();
if (targetFrameworks != null && targetFrameworks.Value.Contains(';')) condition += " and '$(IsCrossTargetingBuild)' == 'true'";
return condition;
}
Description
Add support for skipping husky execution on $HUSKY="false". Implements #32
Type of change
Checklist