mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
Adds Perl version detection (#2206)
* Adds Perl version detection
* Follows @al-cheb advice 👍
This commit is contained in:
committed by
GitHub
parent
80ce7c1c6e
commit
3cd4e423d8
@@ -49,6 +49,11 @@ function Get-NodeVersion {
|
||||
return "Node $nodeVersion"
|
||||
}
|
||||
|
||||
function Get-PerlVersion {
|
||||
$version = $(perl -e 'print substr($^V,1)')
|
||||
return "Perl $version"
|
||||
}
|
||||
|
||||
function Get-PythonVersion {
|
||||
$result = Get-CommandResult "python --version"
|
||||
$version = $result.Output | Take-OutputPart -Part 1
|
||||
|
||||
Reference in New Issue
Block a user