You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Retrieve file contents from GitHub. File contents is returned in Base 64 so after contents is retrieved, convert from Base 64 to plain text.
158
160
$FileContentsBase64 = Invoke-RestMethod -Method GET -Uri $File.contents_url -Headers $GitHubHeaders
@@ -217,11 +219,12 @@ jobs:
217
219
Technology = $Technology
218
220
Tier = $Tier
219
221
Author = $Author
222
+
FileName = $FileName
220
223
}
221
224
222
225
# If any metadata or author data was found, add it to the $FileArray output array.
223
226
If ($MetadataFound) {
224
-
Write-Host "Metadata or author data found on $($File.filename). Adding to output array."
227
+
Write-Host "Metadata or author data found on $FileName. Adding to output array."
225
228
$FileArray += $FileData
226
229
}
227
230
}
@@ -254,6 +257,7 @@ jobs:
254
257
If ($File.Tier -ne $Null) {$MetadataArray += $File.Tier.SubString(0,1).ToUpper() + $File.Tier.SubString(1).ToLower()}
255
258
If ($File.Author -ne $Null) {$AuthorArray += $File.Author}
256
259
260
+
257
261
}
258
262
259
263
# Because there might be multiple files in the $MetaDataArray and $AuthorArrays with the same metadata and author data, duplicate values might have been added to the output arrays.
0 commit comments