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 169ee47
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,26 @@ runs:
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' }}
if: !startsWith(runner.os, 'Windows') && inputs.parallel-finished == 'true'
shell: bash
run: >-
coveralls done
${{ inputs.debug == 'true' && '--debug' || '' }}
${{ inputs.measure == 'true' && '--measure' || '' }}
${{ inputs.fail-on-error == 'false' && '--no-fail' || '' }}
env:
COVERALLS_DEBUG: ${{ inputs.debug }}
COVERALLS_CARRYFORWARD_FLAGS: ${{ inputs.carryforward }}
COVERALLS_FLAG_NAME: ${{ inputs.flag-name }}
COVERALLS_PARALLEL: ${{ inputs.parallel }}
COVERALLS_ENDPOINT: ${{ inputs.coveralls-endpoint }}
COVERALLS_GIT_BRANCH: ${{ inputs.git-branch }}
COVERALLS_GIT_COMMIT: ${{ inputs.git-commit }}
COVERALLS_REPO_TOKEN: ${{ inputs.github-token }}

- name: Done report
if: startsWith(runner.os, 'Windows') && inputs.parallel-finished == 'true'
shell: pwsh
run: >-
coveralls done
${{ inputs.debug == 'true' && '--debug' || '' }}
Expand All @@ -124,7 +142,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 169ee47

Please sign in to comment.