Skip to content

Commit bc50a8a

Browse files
committed
Fix regex in test-php-libs-from-source workflow
1 parent 58dec95 commit bc50a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-php-libs-from-source.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ jobs:
8080
run: |
8181
$artifactDirectory = $(pwd).Path
8282
$zip = Get-ChildItem -Path $artifactDirectory -Filter "php-*.zip" -File |
83-
Where-Object { $_.Name -match "^php-(.+?)-(?:nts-)?Win32-vs\d+-${{ matrix.arch }}\.zip$" } |
83+
Where-Object { $_.Name -match "^php-(.+?)-(?:nts-)?Win32-v[sc]\d+-${{ matrix.arch }}\.zip$" } |
8484
Select-Object -First 1
8585
if ($null -eq $zip) {
8686
throw "Unable to determine PHP version from build artifacts in $artifactDirectory"
8787
}
88-
$phpVersion = [regex]::Match($zip.Name, '^php-(.+?)-(?:nts-)?Win32-vs\d+-').Groups[1].Value
88+
$phpVersion = [regex]::Match($zip.Name, '^php-(.+?)-(?:nts-)?Win32-v[sc]\d+-').Groups[1].Value
8989
9090
$pv = $phpVersion
9191
if($phpVersion -ne 'master') {

0 commit comments

Comments
 (0)