Skip to content

Commit dc9952d

Browse files
Fix for projects with spaces in their name (#286)
* Fix for projects with spaces in their name * Updating portal site name
1 parent cbe429a commit dc9952d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pr-loop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
ServiceConnection = $env:AZDO_SVC_CONN_NAME
3636
SolutionName = "ALMAcceleratorSampleSolution"
3737
UserName = $env:PR_LOOP_USERNAME
38-
PortalSiteName = 'ALMAcceleratorSamplePortal - site-d6dw3'
38+
PortalSiteName = 'ALM Accelerator Sample - almacceleratorsample'
3939
PublishCustomizations = 'false'
4040
CommitScope = '1'
4141
}

PowerShell/portal-functions.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function Process-and-Download-Websites
5757
if($websiteId -ne "NA"){
5858
Write-Host "Triggering pac download"
5959
# Logic to download websites
60-
$portalDownloadCommand = "paportal download --path $powerPagesFolderPath --webSiteId $websiteId --overwrite"
60+
$portalDownloadCommand = 'paportal download --path "$powerPagesFolderPath" --webSiteId $websiteId --overwrite'
6161
Write-Host "Executing portalDownloadCommand - $pacexepath $portalDownloadCommand"
6262
Invoke-Expression -Command "$pacexepath $portalDownloadCommand"
6363
}else{
@@ -119,7 +119,7 @@ function Process-and-Upload-Websites
119119
}
120120

121121
# Logic to upload websites
122-
$portalUploadCommand = "paportal upload --path $websiteFolderPath"
122+
$portalUploadCommand = 'paportal upload --path "$websiteFolderPath"'
123123
if($filesCount -gt 0){
124124
Write-Host "Uploading command with profile - $environmentName"
125125
$portalUploadCommand = $portalUploadCommand + " --deploymentProfile $environmentName"

0 commit comments

Comments
 (0)