diff --git a/packages/@aws-cdk/pipelines/lib/pipeline.ts b/packages/@aws-cdk/pipelines/lib/pipeline.ts index 75fb655560c6b..09de29bedb663 100644 --- a/packages/@aws-cdk/pipelines/lib/pipeline.ts +++ b/packages/@aws-cdk/pipelines/lib/pipeline.ts @@ -279,7 +279,7 @@ class AssetPublishing extends Construct { const id = command.assetType === AssetType.FILE ? `FileAsset${this._fileAssetCtr++}` : `DockerAsset${this._dockerAssetCtr++}`; action = this.publishers[command.assetId] = new PublishAssetsAction(this, id, { - actionName: command.assetId, + actionName: id, cloudAssemblyInput: this.props.cloudAssemblyInput, cdkCliVersion: this.props.cdkCliVersion, assetType: command.assetType, diff --git a/packages/@aws-cdk/pipelines/test/pipeline-assets.test.ts b/packages/@aws-cdk/pipelines/test/pipeline-assets.test.ts index e0d4119c326db..084fe467413bb 100644 --- a/packages/@aws-cdk/pipelines/test/pipeline-assets.test.ts +++ b/packages/@aws-cdk/pipelines/test/pipeline-assets.test.ts @@ -82,7 +82,7 @@ test('assets are also published when using the lower-level addStackArtifactDeplo Name: 'Assets', Actions: [ objectLike({ - Name: FILE_ASSET_SOURCE_HASH, + Name: 'FileAsset1', RunOrder: 1, }), ],