functions/SetOutputVariable.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function SetOutputVariable
{
    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$true)]
        [string]
        $Name,

        [Parameter(Mandatory=$true)]
        [string]
        $Value
    )
    
    Write-Output ("`n::set-output name={0}::{1}" -f $Name, $Value)
}