Skip to content

Commit dacb8c2

Browse files
committed
Apply fail-on-error logic to error state when user tries to set coverage-reporter-version on MacOS, which is not available there.
1 parent a35a81d commit dacb8c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ runs:
105105
shell: bash
106106
run: |
107107
echo "The coverage-reporter-version parameter is not available on macOS." >&2
108-
exit 1
108+
if [[ "${{ inputs.fail-on-error }}" == "true" ]]; then
109+
exit 1
110+
else
111+
exit 0
112+
fi
109113
110114
- name: Install coveralls reporter (Linux)
111115
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)