Skip to content

Commit

Permalink
regression (microsoft#1032)
Browse files Browse the repository at this point in the history
Fix regression in DownloadRelease

---------

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Apr 15, 2024
1 parent 3275712 commit f2f4529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Actions/Github-Helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function DownloadRelease {
$headers = GetHeader -token $token -accept "application/octet-stream"
foreach($project in $projects.Split(',')) {
# GitHub replaces series of special characters with a single dot when uploading release assets
$project = [Uri]::EscapeDataString($project.Replace('\','_').Replace('/','_').Replace(' ','.')).Replace('%','')
$project = [Uri]::EscapeDataString($project.Replace('\','_').Replace('/','_').Replace(' ','.')).Replace('%2A','*').Replace('%3F','?').Replace('%','')
Write-Host "project '$project'"
$assetPattern1 = "$project-*-$mask-*.zip"
$assetPattern2 = "$project-$mask-*.zip"
Expand Down

0 comments on commit f2f4529

Please sign in to comment.