Skip to content

Commit f755502

Browse files
committed
ci: Fix bool equality comparison
1 parent f32ef93 commit f755502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ jobs:
105105
script: |
106106
function Test-Value ($expression, $expected) {
107107
$actual = Invoke-Expression $expression
108-
if ("$actual" -cne $expected) {
108+
if ($actual -cne $expected) {
109109
throw "Failed assertion:'$expression' evaluated to '$actual', expected '$expected'."
110110
}
111111
}
112112
Test-Value '$github.token' '${{ github.token }}'
113113
Test-Value '$job.status' '${{ job.status }}'
114114
Test-Value '$runner.os' '${{ runner.os }}'
115-
Test-Value '$strategy."fail-fast"' '${{ strategy.fail-fast }}'
115+
Test-Value '$strategy."fail-fast"' ([bool]'${{ strategy.fail-fast }}')
116116
Test-Value '$matrix.os' '${{ matrix.os }}'
117117
118118
# Get-ActionInput

0 commit comments

Comments
 (0)