2 Commits

Author SHA1 Message Date
Claire Kuang 5ed6ab2f69 attach warning test
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2024-02-01 17:25:12 +00:00
Claire Kuang 470b3d93de adds additional information to run failed log 2024-02-01 11:13:55 +00:00
@@ -208,7 +208,7 @@ static class AutomateFunction
if (addedList.Count + deletedList.Count + modifiedList.Count > 0)
{
automationContext.MarkRunFailed(
$"Run failed due to {addedList.Count} ADDED, {modifiedList.Count} MODIFIED, and {deletedList.Count} DELETED objects compared to the release commit."
$"Run failed due to {addedList.Count} ADDED, {modifiedList.Count} MODIFIED, and {deletedList.Count} DELETED objects compared to the release commit ({unchangedCount} objects were unchanged)."
);
addedList.ForEach(
@@ -223,6 +223,11 @@ static class AutomateFunction
$"MODIFIED object: id( {o.Item1} ), type( {o.Item2} ), changed props:( {o.Item3} )"
)
);
automationContext.AttachWarningToObjects(
MODIFIED,
modifiedList.Select(o => o.Item1).ToList()
);
}
else
{