diff --git a/eng/update-dependencies/FromStagingPipelineCommand.cs b/eng/update-dependencies/FromStagingPipelineCommand.cs index d90e3ae1b9..1feffdc657 100644 --- a/eng/update-dependencies/FromStagingPipelineCommand.cs +++ b/eng/update-dependencies/FromStagingPipelineCommand.cs @@ -70,11 +70,14 @@ public override async Task ExecuteAsync(FromStagingPipelineOptions options) DotNetVersion dotNetVersion = DotNetVersion.Parse(releaseConfig.RuntimeBuild); string majorMinorVersionString = dotNetVersion.ToString(2); - // Record pipeline run ID for this internal version, for later use by sync-internal-release command - _internalVersionsService.RecordInternalStagingBuild( - repoRoot: gitRepoContext.LocalRepoPath, - dotNetVersion: dotNetVersion, - stagingPipelineRunId: options.StagingPipelineRunId); + if (options.Internal) + { + // Record pipeline run ID for this internal version, for later use by sync-internal-release command + _internalVersionsService.RecordInternalStagingBuild( + repoRoot: gitRepoContext.LocalRepoPath, + dotNetVersion: dotNetVersion, + stagingPipelineRunId: options.StagingPipelineRunId); + } var productVersions = (options.Internal, releaseConfig.SdkOnly) switch {