Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/bump-runner-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
echo "Invalid version"
exit 1
fi
# Check that this release exists in the CodSpeedHQ/runner repository
if ! gh release view v${{ github.event.inputs.version }} -R CodSpeedHQ/runner; then
echo "Release ${{ github.event.inputs.version }} does not exist in CodSpeedHQ/runner"
# Check that this release exists in the CodSpeedHQ/codspeed repository
if ! gh release view v${{ github.event.inputs.version }} -R CodSpeedHQ/codspeed; then
echo "Release ${{ github.event.inputs.version }} does not exist in CodSpeedHQ/codspeed"
exit 1
fi

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog

This project is kept in sync with the [CodSpeedHQ/runner](https://github.com/CodSpeedHQ/runner) project.
This project is kept in sync with the [CodSpeedHQ/codspeed](https://github.com/CodSpeedHQ/codspeed) project.

Checkout the [CodSpeedHQ/runner Changelog](https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md) for more details.
Checkout the [CodSpeedHQ/codspeed Changelog](https://github.com/CodSpeedHQ/codspeed/blob/main/CHANGELOG.md) for more details.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,25 +134,25 @@ runs:
RUNNER_VERSION=$(echo "$RUNNER_VERSION" | sed 's/^v//')
fi

# Install the CodSpeedHQ/runner
# Install the runner
if [ "$VERSION_TYPE" = "latest" ]; then
curl -fsSL http://github.com/CodSpeedHQ/runner/releases/latest/download/codspeed-runner-installer.sh | bash -s -- --quiet
curl -fsSL http://github.com/CodSpeedHQ/codspeed/releases/latest/download/codspeed-runner-installer.sh | bash -s -- --quiet
elif [ "$VERSION_TYPE" = "branch" ]; then
# Install from specific branch using cargo
source $HOME/.cargo/env
cargo install --locked --git https://github.com/CodSpeedHQ/runner --branch "$RUNNER_VERSION" codspeed-runner
cargo install --locked --git https://github.com/CodSpeedHQ/codspeed --branch "$RUNNER_VERSION" codspeed-runner
elif [ "$VERSION_TYPE" = "rev" ]; then
# Install from specific commit/rev using cargo
source $HOME/.cargo/env
cargo install --locked --git https://github.com/CodSpeedHQ/runner --rev "$RUNNER_VERSION" codspeed-runner
cargo install --locked --git https://github.com/CodSpeedHQ/codspeed --rev "$RUNNER_VERSION" codspeed-runner
else
# Release version
head_status=$(curl -I -fsSL -w "%{http_code}" -o /dev/null https://github.com/CodSpeedHQ/runner/releases/download/v$RUNNER_VERSION/codspeed-runner-installer.sh)
head_status=$(curl -I -fsSL -w "%{http_code}" -o /dev/null https://github.com/CodSpeedHQ/codspeed/releases/download/v$RUNNER_VERSION/codspeed-runner-installer.sh)
if [ "$head_status" -eq 404 ]; then
echo "Error: Version $RUNNER_VERSION is not available in https://github.com/CodSpeedHQ/runner/releases, please a correct version."
echo "Error: Version $RUNNER_VERSION is not available in https://github.com/CodSpeedHQ/codspeed/releases, please a correct version."
exit 1
else
curl -fsSL https://github.com/CodSpeedHQ/runner/releases/download/v$RUNNER_VERSION/codspeed-runner-installer.sh | bash -s -- --quiet
curl -fsSL https://github.com/CodSpeedHQ/codspeed/releases/download/v$RUNNER_VERSION/codspeed-runner-installer.sh | bash -s -- --quiet
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ git push origin tag v$NEW_VERSION
git push -f origin tag v$MAJOR_VERSION
git push --follow-tags

RUNNER_NOTES=$(gh release view v$NEW_VERSION -R CodSpeedHQ/runner --json body | jq -r .body)
RUNNER_NOTES=$(gh release view v$NEW_VERSION -R CodSpeedHQ/codspeed --json body | jq -r .body)
RUNNER_NOTES="$RUNNER_NOTES


**Full Runner Changelog**: https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md"
**Full Runner Changelog**: https://github.com/CodSpeedHQ/codspeed/blob/main/CHANGELOG.md"
gh release create v$NEW_VERSION --title "v$NEW_VERSION" --notes "$RUNNER_NOTES" -d
Loading