Summary
Creates or updates an output parameter for any steps running next in a job.
Syntax
public void SetOutputParameter(string key, string value)
Examples
if (GitHubActions.IsRunningOnGitHubActions)
{
GitHubActions.Commands.SetOutputParameter(
"CAKE_VERSION_OS",
string.Join(
'_',
Context.Environment.Runtime.CakeVersion.ToString(3),
GitHubActions.Environment.Runner.OS,
GitHubActions.Environment.Runner.Architecture));
}
Parameters
| Name |
Type |
Description |
| key |
string |
The key. |
| value |
string |
The Value. |
Return Value