Skip to content

Commit

Permalink
Merge pull request #133 from creative-commoners/pulls/1.12/xdev
Browse files Browse the repository at this point in the history
FIX Ensure only caret requirements are modified
  • Loading branch information
GuySartorelli authored Jul 4, 2024
2 parents bc75912 + 376e50d commit 1e2da6c
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 1e2da6c

Please sign in to comment.