Skip to content

Commit 10b0bd8

Browse files
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into dev
2 parents 07e14d4 + 5990940 commit 10b0bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ function Invoke-ExecCommunityRepo {
169169

170170
$MigrationTable = $Files | Where-Object { $_.name -eq 'MigrationTable' } | Select-Object -Last 1
171171
if ($MigrationTable) {
172-
Write-Host 'Found a migration table, getting contents'
172+
Write-Host "Found a migration table, getting contents for $FullName"
173173
$MigrationTable = (Get-GitHubFileContents -FullName $FullName -Branch $Branch -Path $MigrationTable.path).content | ConvertFrom-Json
174174
}
175175

176176
$NamedLocations = $Files | Where-Object { $_.name -match 'ALLOWED COUNTRIES' }
177177
$LocationData = foreach ($Location in $NamedLocations) {
178-
(Get-GitHubFileContents -FullName $TemplateSettings.templateRepo.value -Branch $TemplateSettings.templateRepoBranch.value -Path $Location.path).content | ConvertFrom-Json
178+
(Get-GitHubFileContents -FullName $FullName -Branch $Branch -Path $Location.path).content | ConvertFrom-Json
179179
}
180180
}
181181
Import-CommunityTemplate -Template $Content -SHA $Template.sha -MigrationTable $MigrationTable -LocationData $LocationData

0 commit comments

Comments
 (0)