Skip to content

Commit 48790d7

Browse files
committed
Do case insensitive replace for vars.
1 parent 534b690 commit 48790d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/set_output_variable.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ $trimArg = "$invovationPath" + "\trim_arg.ps1";
1212

1313
$trimmed_name = & $trimArg -arg $name;
1414
$trimmed_val = & $trimArg -arg $val;
15-
if ($replace -ne "") {
16-
$trimmed_val = $trimmed_val.replace($replace, $with);
15+
if ( $replace -ne "" ) {
16+
$trimmed_val = $trimmed_val -replace $replace, $with, "IgnoreCase";
1717
}
1818

1919
function toGitHub {
2020
param(
2121
$output_name,
2222
$output_value
2323
)
24+
Write-Output "$output_name=$output_value"
2425
"$output_name=$output_value" >> $env:GITHUB_OUTPUT;
2526
}
2627

0 commit comments

Comments
 (0)