Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
GHWorkflowHelper.psm128 linesDownload Raw Back to GHWorkflowHelper
1# Copyright (c) Microsoft Corporation.2# Licensed under the MIT License.3 4function Set-GWVariable {5    param(6        [Parameter(Mandatory = $true)]7        [string]$Name,8        [Parameter(Mandatory = $true)]9        [string]$Value10    )11 12    Write-Verbose "Setting CI variable $Name to $Value" -Verbose13 14    if ($env:GITHUB_ENV) {15        "$Name=$Value" | Out-File $env:GITHUB_ENV -Append16    }17}18 19function Get-GWTempPath {20    $temp = [System.IO.Path]::GetTempPath()21    if ($env:RUNNER_TEMP) {22        $temp = $env:RUNNER_TEMP23    }24 25    Write-Verbose "Get CI Temp path: $temp" -Verbose26    return $temp27}28