diff --git a/tests/Create-ApiKey.ps1 b/tests/Create-ApiKey.ps1 index 49ad3a3d..d81953f5 100644 --- a/tests/Create-ApiKey.ps1 +++ b/tests/Create-ApiKey.ps1 @@ -22,4 +22,5 @@ $ApiObj = $repository.Users.CreateApiKey($UserObj, "go-octopusdeploy tests") #Save the API key so we can use it later Set-Content -Path tests\octopus_api.txt -Value $ApiObj.ApiKey -Write-Host "::set-env name=OCTOPUS_APIKEY::$($ApiObj.ApiKey)" \ No newline at end of file +#Write-Host "::set-env name=OCTOPUS_APIKEY::$($ApiObj.ApiKey)" +Write-Host "OCTOPUS_APIKEY=$($ApiObj.ApiKey) >> $GITHUB_ENV" \ No newline at end of file