From 376e50d65e8a4b99165829e7635306b16b15347f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 4 Jul 2024 19:05:16 +1200 Subject: [PATCH] FIX Ensure only caret requirements are modified --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a8b420..93f6545 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -611,7 +611,9 @@ jobs: php -r ' $j = json_decode(file_get_contents("composer.json")); $v = $j->require->{"silverstripe/installer"}; - $v = str_replace("^", "", $v) . ".x-dev"; + if (strpos($v, '^') === 0) { + $v = str_replace("^", "", $v) . ".x-dev"; + } $j->require->{"silverstripe/installer"} = $v; $c = json_encode($j, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES); file_put_contents("composer.json", $c);