Skip to content

Commit

Permalink
ci: Fix bool equality comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Feb 7, 2021
1 parent f32ef93 commit f755502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ jobs:
script: |
function Test-Value ($expression, $expected) {
$actual = Invoke-Expression $expression
if ("$actual" -cne $expected) {
if ($actual -cne $expected) {
throw "Failed assertion:'$expression' evaluated to '$actual', expected '$expected'."
}
}
Test-Value '$github.token' '${{ github.token }}'
Test-Value '$job.status' '${{ job.status }}'
Test-Value '$runner.os' '${{ runner.os }}'
Test-Value '$strategy."fail-fast"' '${{ strategy.fail-fast }}'
Test-Value '$strategy."fail-fast"' ([bool]'${{ strategy.fail-fast }}')
Test-Value '$matrix.os' '${{ matrix.os }}'
# Get-ActionInput
Expand Down

0 comments on commit f755502

Please sign in to comment.