mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
################################################################################
|
||||
## File: Validate-Miniconda.ps1
|
||||
## Desc: Validate Miniconda
|
||||
################################################################################
|
||||
|
||||
if ($env:CONDA)
|
||||
{
|
||||
Write-Host "The CONDA environment variable is set"
|
||||
Write-Host $env:CONDA
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "The CONDA environment variable is not set"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if ((Test-Path "$env:CONDA\python.exe") -and (Test-Path "$env:CONDA\Scripts\conda.exe"))
|
||||
{
|
||||
Write-Host "Miniconda is successfully installed:"
|
||||
& "$env:CONDA\Scripts\conda.exe" --version | Write-Host
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Miniconda is not installed"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$softwareName = "Miniconda"
|
||||
$description = @"
|
||||
_Version:_ $(& "$env:CONDA\Scripts\conda.exe" --version)<br/>
|
||||
_Environment:_
|
||||
* CONDA: contains location of the root of the Miniconda installation
|
||||
"@
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $softwareName -DescriptionMarkdown $description
|
||||
################################################################################
|
||||
## File: Validate-Miniconda.ps1
|
||||
## Desc: Validate Miniconda
|
||||
################################################################################
|
||||
|
||||
if ($env:CONDA)
|
||||
{
|
||||
Write-Host "The CONDA environment variable is set"
|
||||
Write-Host $env:CONDA
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "The CONDA environment variable is not set"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if ((Test-Path "$env:CONDA\python.exe") -and (Test-Path "$env:CONDA\Scripts\conda.exe"))
|
||||
{
|
||||
Write-Host "Miniconda is successfully installed:"
|
||||
& "$env:CONDA\Scripts\conda.exe" --version | Write-Host
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Miniconda is not installed"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$softwareName = "Miniconda"
|
||||
$description = @"
|
||||
_Version:_ $(& "$env:CONDA\Scripts\conda.exe" --version)<br/>
|
||||
_Environment:_
|
||||
* CONDA: contains location of the root of the Miniconda installation
|
||||
"@
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $softwareName -DescriptionMarkdown $description
|
||||
|
||||
Reference in New Issue
Block a user