Skip to content

Commit eb919e3

Browse files
📝[Fix]: Ensure boolean values are correctly converted to strings in environment variable processing
1 parent 5dbed0d commit eb919e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎.github/workflows/workflow.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ jobs:
116116
$map = $env:RAW_JSON | ConvertFrom-Json -AsHashtable
117117
118118
foreach ($key in $map.Keys) {
119-
$value = ($map[$key]).ToString().ToLower()
119+
$value = $map[$key]
120+
121+
if ($value -is [bool]) {
122+
$value = $value.ToString().ToLower()
123+
}
120124
121125
# Persist for following steps in this job
122126
"$key=$value" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

0 commit comments

Comments
 (0)