Skip to content

Commit 8db01fe

Browse files
syntax
1 parent f0cf35a commit 8db01fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/actions/build-sdk/action.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ runs:
6363
SDK_VERSION: ${{ inputs.version }}
6464
run: |
6565
$buildArgs = @($env:SDK_PRESET)
66-
switch ($env:SDK_CAPTURE) {
67-
'ON'; 'all' { $buildArgs += '--capture' }
68-
'OFF'; 'none'; '' { $buildArgs += '--no-capture' }
66+
switch ([string]$env:SDK_CAPTURE) {
67+
{ $_ -in @('ON', 'all') } { $buildArgs += '--capture'; break }
68+
{ $_ -in @('OFF', 'none', '') } { $buildArgs += '--no-capture'; break }
6969
default { $buildArgs += "--capture=$($env:SDK_CAPTURE)" }
7070
}
7171
if ($env:SDK_BUNDLE_DIR) { $buildArgs += @('--bundle', '--prefix', $env:SDK_BUNDLE_DIR) }

0 commit comments

Comments
 (0)