From 697c7c726f9d8c7f30d2336363afdcc80dc43e44 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 03:18:34 +0000 Subject: [PATCH 1/2] Initial plan From a3aea4ec9b7bfc8411847b26800f72d5edce388a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 03:24:30 +0000 Subject: [PATCH 2/2] Use robust path when reading .ruby-version Instead of hardcoding the Ruby version, read it from .ruby-version file using a path relative to the script location. This makes the script work correctly regardless of where it's sourced from. Co-authored-by: mokagio <1218433+mokagio@users.noreply.github.com> --- .buildkite/shared-pipeline-vars | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.buildkite/shared-pipeline-vars b/.buildkite/shared-pipeline-vars index 262e8ef86..d455cab46 100644 --- a/.buildkite/shared-pipeline-vars +++ b/.buildkite/shared-pipeline-vars @@ -3,5 +3,6 @@ export IMAGE_ID="xcode-26.1.1" export CI_TOOLKIT="automattic/a8c-ci-toolkit#5.7.0" export DOCKER_PLUGIN="docker#v5.13.0" -export RUBY_VERSION="3.2.2" +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +export RUBY_VERSION="$(cat "$SCRIPT_DIR/../.ruby-version")" export DOCKER_RUBY_IMAGE="public.ecr.aws/docker/library/ruby:$RUBY_VERSION"