Skip to content

Commit 98ca86e

Browse files
Refactor Action-Test workflow to parse and format Git configuration list into a structured object
1 parent c3a16f5 commit 98ca86e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/Action-Test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,16 @@ jobs:
4444
if ($LASTEXITCODE -ne 0) {
4545
$global:LASTEXITCODE = 0
4646
$configList = $null
47-
} else {
47+
} else {¨
48+
$config = @()
4849
$configList = $configList | Sort-Object
49-
$configList | Get-Member | Format-Table -AutoSize
50-
$configList.GetType() | Format-Table -AutoSize
51-
Write-Host $configList
50+
$configList | ForEach-Object {
51+
$name, $value += $_ -split '='
52+
$config += @{
53+
$name = $value
54+
}
55+
}
56+
$config
5257
}
5358
}
5459
}

0 commit comments

Comments
 (0)