Skip to content

Commit

Permalink
FIX Ensure only caret requirements are modified
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 4, 2024
1 parent bc75912 commit 376e50d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 376e50d

Please sign in to comment.