Skip to content

Commit

Permalink
BUGFIX: Ensure a valid target workspace name
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Aug 16, 2024
1 parent 9e98694 commit 2cba70e
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 2cba70e

Please sign in to comment.