Skip to content

Commit ac5be70

Browse files
Only pick up known available AVM statuses (#68)
1 parent 8100a89 commit ac5be70

File tree

3 files changed

+23
-561
lines changed

3 files changed

+23
-561
lines changed

scripts/UpdateSamples.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,19 @@ function GetAvmLinks {
5959
$bicepModules = ConvertFrom-Csv (Invoke-WebRequest -Uri $bicepLinks).Content
6060
$tfModules = ConvertFrom-Csv (Invoke-WebRequest -Uri $tfLinks).Content
6161

62+
$availableStatuses = @(
63+
"Available :green_circle:",
64+
"Orphaned :eyes:"
65+
)
66+
6267
$links = @()
6368
foreach ($bicepModule in $bicepModules) {
6469
Write-Host "Processing $($bicepModule.RepoURL)"
6570

71+
if ($bicepModule.ModuleStatus -notin $availableStatuses) {
72+
continue
73+
}
74+
6675
$links += [ordered]@{
6776
Type = "Bicep";
6877
Title = $bicepModule.ModuleDisplayName;
@@ -74,6 +83,10 @@ function GetAvmLinks {
7483
foreach ($tfModule in $tfModules) {
7584
Write-Host "Processing $($tfModule.RepoURL)"
7685

86+
if ($tfModule.ModuleStatus -notin $availableStatuses) {
87+
continue
88+
}
89+
7790
$links += [ordered]@{
7891
Type = "Terraform";
7992
Title = $tfModule.ModuleDisplayName;

0 commit comments

Comments
 (0)