Skip to content

Commit effa789

Browse files
authored
Keep both naming conventions for master [skip ci]
1 parent adadc53 commit effa789

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/phpmaster.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ jobs:
9292
Copy-Item -Path builds -Destination master -Container -Recurse
9393
Copy-Item -Path C:\php-snap-build\rmtools\data\db\master.json -Destination .\builds\${{ matrix.config }}.json
9494
Get-ChildItem .\master -Filter '*win32*.zip' | ForEach-Object { Copy-Item $_.FullName "$($_.DirectoryName)\$($_.Name -replace 'win32','windows')" }
95-
if(("${{ matrix.config }}" -eq "ts-windows-vs17-x64") -or ("${{ matrix.config }}" -eq "ts-windows-vs17-x86")) {
96-
Get-ChildItem .\master *.zip | Rename-Item -NewName { $_.name -replace $php_version,"master-ts" }
95+
if (("${{ matrix.config }}" -match 'ts-windows-vs17-x(64|x86)')) {
96+
Get-ChildItem .\master -Filter '*.zip' | ForEach-Object { Copy-Item $_.FullName (Join-Path $_.DirectoryName ($_.Name -replace $php_version,'master-ts')) }
9797
} else {
98-
Get-ChildItem .\master *.zip | Rename-Item -NewName { $_.name -replace $php_version,"master" }
98+
Get-ChildItem .\master -Filter '*.zip' | ForEach-Object { Copy-Item $_.FullName (Join-Path $_.DirectoryName ($_.Name -replace $php_version,'master')) }
9999
}
100100
Get-ChildItem .\master\* -Include php-*.zip | Foreach-Object { Copy-Item -Path $_ -Destination .\builds }
101101
if((Get-ChildItem .\builds\*.zip).Count -lt 5) {

0 commit comments

Comments
 (0)