Skip to content

Commit b6b191c

Browse files
committed
Fix signing filters
1 parent 328cc1d commit b6b191c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

windows-release/sign-files.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ steps:
113113
- ${{ if parameters.Include }}:
114114
- powershell: |
115115
if ($env:EXCLUDE) {
116-
$files = (dir $env:INCLUDE -Exclude $env:EXCLUDE -File)
116+
$files = (dir ($env:INCLUDE -split ';').Trim() -Exclude ($env:EXCLUDE -split ';').Trim() -File)
117117
} else {
118-
$files = (dir $env:INCLUDE -File)
118+
$files = (dir ($env:INCLUDE -split ';').Trim() -File)
119119
}
120120
if ($env:FILTER) {
121-
($env:FILTER -split ';') -join "`n" | Out-File __filelist.txt -Encoding utf8
121+
($env:FILTER -split ';').Trim() -join "`n" | Out-File __filelist.txt -Encoding utf8
122122
} else {
123123
"*" | Out-File __filelist.txt -Encoding utf8
124124
}
@@ -145,9 +145,9 @@ steps:
145145
- ${{ if parameters.ExtractDir }}:
146146
- powershell: |
147147
if ($env:EXCLUDE) {
148-
$files = (dir $env:INCLUDE -Exclude $env:EXCLUDE -File)
148+
$files = (dir ($env:INCLUDE -split ',').Trim() -Exclude ($env:EXCLUDE -split ',').Trim() -File)
149149
} else {
150-
$files = (dir $env:INCLUDE -File)
150+
$files = (dir ($env:INCLUDE -split ',').Trim() -File)
151151
}
152152
$c = $files | %{ (Get-AuthenticodeSignature $_).SignerCertificate } | ?{ $_ -ne $null } | select -First 1
153153
if (-not $c) {

0 commit comments

Comments
 (0)