mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 21:38:13 +00:00
fix filter to avoid rc versions
This commit is contained in:
@@ -97,8 +97,8 @@ foreach($pypyTool in $pypyTools)
|
||||
foreach($pypyVersion in $pypyTool.versions)
|
||||
{
|
||||
# Query latest PyPy version
|
||||
$filter = '{0}{1}-*-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform
|
||||
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -like $filter} | Select-Object -First 1
|
||||
$filter = '{0}{1}-v[0-9]+\.[0-9]+\.[0-9]+-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform
|
||||
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -match $filter} | Select-Object -First 1
|
||||
|
||||
if ($latestMajorPyPyVersion)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user