Skip to content

Commit 1027d8c

Browse files
committed
Explicitly set auto-detect as default for platform
1 parent 773b6d8 commit 1027d8c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ inputs:
7474
required: false
7575
default: 'latest'
7676
coverage-reporter-platform:
77-
description: "Platform of coverage-reporter to use on Linux runners. Supported values: x86_64 (default) and aarch64 (or arm64)"
77+
description: "Platform of coverage-reporter to use on Linux runners. Supported values: auto-detect (default), x86_64, aarch64, arm64."
7878
required: false
79-
default: 'x86_64'
79+
default: 'auto-detect'
8080
branding:
8181
color: 'green'
8282
icon: 'percent'
@@ -148,7 +148,9 @@ runs:
148148
# This logic is necessary due to the introduction of multiple platform support starting from v0.6.15.
149149
# It selects the correct filename based on the specified platform and version, while ensuring
150150
# backward compatibility with earlier versions that only supported a generic Linux binary for x86_64.
151-
[ "$COVERAGE_REPORTER_PLATFORM" ] || COVERAGE_REPORTER_PLATFORM="$(uname -m)"
151+
if [ -z "$COVERAGE_REPORTER_PLATFORM" ] || [ "$COVERAGE_REPORTER_PLATFORM" == "auto-detect" ]; then
152+
COVERAGE_REPORTER_PLATFORM="$(uname -m)"
153+
fi
152154
case "$COVERAGE_REPORTER_PLATFORM" in
153155
x86_64|"")
154156
if version_ge "$COVERAGE_REPORTER_VERSION" "v0.6.15"; then

0 commit comments

Comments
 (0)