set steps.<id>.outcome and steps.<id>.conclusion. (#372)

This commit is contained in:
Tingluo Huang
2020-03-17 21:18:42 -04:00
committed by GitHub
parent a5eb8cb5c4
commit 88875ca1b0
4 changed files with 102 additions and 6 deletions

View File

@@ -56,13 +56,22 @@ namespace GitHub.Runner.Worker
}
}
public void SetResult(
public void SetConclusion(
string scopeName,
string stepName,
string result)
string conclusion)
{
var step = GetStep(scopeName, stepName);
step["result"] = new StringContextData(result);
step["conclusion"] = new StringContextData(conclusion);
}
public void SetOutcome(
string scopeName,
string stepName,
string outcome)
{
var step = GetStep(scopeName, stepName);
step["outcome"] = new StringContextData(outcome);
}
private DictionaryContextData GetStep(string scopeName, string stepName)