Skip to content

Commit

Permalink
fix: check 2 approaches
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Sep 4, 2023
1 parent 107fe71 commit 5802543
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ runs:
New-Item -Path $env:HOME\bin -ItemType directory
Push-Location $env:HOME\bin
Invoke-WebRequest -Uri "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.exe" -OutFile "coveralls.exe"
Invoke-WebRequest -Uri "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt" -OutFile "sha256sums.txt"
(Get-FileHash coveralls.exe).Hash -eq (Get-Content ./sha256sums.txt | Where-Object{$_ -match 'windows.exe'} | ForEach-Object{($_ -split "\s+")[0]})
Remove-Item *.txt -Force
echo $env:HOME\bin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Done report
if: inputs.parallel-finished == 'true'
shell: ${{ startsWith(runner.os, 'Windows') ? 'pwsh' : 'bash' }}
shell: ${{ startsWith(runner.os, 'Windows') && 'pwsh' || 'bash' }}
run: >-
coveralls done
${{ inputs.debug == 'true' && '--debug' || '' }}
Expand All @@ -124,7 +127,7 @@ runs:

- name: Coverage report
if: inputs.parallel-finished != 'true'
shell: ${{ startsWith(runner.os, 'Windows') ? 'pwsh' : 'bash' }}
shell: ${{ startsWith(runner.os, 'Windows') && 'pwsh' || 'bash' }}
run: >-
coveralls report
${{ inputs.debug == 'true' && '--debug' || '' }}
Expand Down

0 comments on commit 5802543

Please sign in to comment.