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);