Skip to content

Commit

Permalink
Don't return exit code 1 when an invalid coverage reporter platform i…
Browse files Browse the repository at this point in the history
…s selected; just deliver a warning message and proceed with the default platform, x86_64.
  • Loading branch information
afinetooth committed Oct 22, 2024
1 parent ab814ce commit 6261c19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ runs:
platform_filename="coveralls-linux-aarch64.tar.gz"
;;
*)
echo "Unsupported platform: $COVERAGE_REPORTER_PLATFORM"
[ "${{ inputs.fail-on-error }}" == "false" ] && exit 0
exit 1
echo "Warning: Unsupported platform: $COVERAGE_REPORTER_PLATFORM. The default x86_64 version ($version_message) will be used." >&2
platform_filename="coveralls-linux-x86_64.tar.gz"
;;
esac
Expand Down

0 comments on commit 6261c19

Please sign in to comment.