Skip to content

Commit

Permalink
Merge pull request #5212 from dlubitz/bugfix/5199-target-workspace-name
Browse files Browse the repository at this point in the history
BUGFIX: Ensure a valid target workspace name
  • Loading branch information
kitsunet authored Aug 17, 2024
2 parents 58d4b8c + 2cba70e commit 6dded19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
public function executeCommand(string $version, string $sourceWorkspace = 'live', bool $publishOnSuccess = true, bool $force = false, string $contentRepository = 'default'): void
{
$sourceWorkspaceName = WorkspaceName::fromString($sourceWorkspace);
$targetWorkspaceName = WorkspaceName::fromString(sprintf('migration-%s-%s', $sourceWorkspaceName->value, $version));
$targetWorkspaceName = WorkspaceName::transliterateFromString(sprintf('migration-%s-%s', $version, $sourceWorkspaceName->value));
$contentRepositoryId = ContentRepositoryId::fromString($contentRepository);

try {
Expand Down

0 comments on commit 6dded19

Please sign in to comment.