Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ runs:
# Detect version type (priority: latest > version number > branch/rev prefixes)
if [ "$RUNNER_VERSION" = "latest" ]; then
VERSION_TYPE="latest"
elif echo "$RUNNER_VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+-'; then
VERSION_TYPE="prerelease"
elif echo "$RUNNER_VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+'; then
VERSION_TYPE="release"
elif echo "$RUNNER_VERSION" | grep -q '^branch:'; then
Expand Down Expand Up @@ -161,6 +163,12 @@ runs:
echo "::warning::Hash verification is not available when using 'latest' version. Consider pinning a specific version for supply chain security."
fi
curl -fsSL https://codspeed.io/install.sh | bash -s -- --quiet
elif [ "$VERSION_TYPE" = "prerelease" ]; then
# Prereleases are not pinned, so install from the versioned installer without hash verification.
if [ "$SKIP_HASH_CHECK_WARNING" != "true" ]; then
echo "::warning::Hash verification is not available for prerelease version $RUNNER_VERSION."
fi
curl -fsSL "https://codspeed.io/v$RUNNER_VERSION/install.sh" | bash -s -- --quiet
elif [ "$VERSION_TYPE" = "branch" ]; then
# Install from specific branch using cargo
if [ "$SKIP_HASH_CHECK_WARNING" != "true" ]; then
Expand Down
Loading