From eb5d3f9be211f1f684ad94721331a49ac9850cd1 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Fri, 2 Sep 2022 08:53:01 -0700 Subject: [release/7.0] Only attempt to use ESRP connection in approved branches (#74942) * Only attempt to use ESRP connection in approved branches * Update sign-diagnostic-files.yml Add main --- eng/pipelines/coreclr/templates/sign-diagnostic-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eng') diff --git a/eng/pipelines/coreclr/templates/sign-diagnostic-files.yml b/eng/pipelines/coreclr/templates/sign-diagnostic-files.yml index 7b020552ad5..578a4f9999d 100644 --- a/eng/pipelines/coreclr/templates/sign-diagnostic-files.yml +++ b/eng/pipelines/coreclr/templates/sign-diagnostic-files.yml @@ -4,7 +4,7 @@ parameters: timeoutInMinutes: '' steps: -- ${{ if and(eq(parameters.isOfficialBuild, true), ne(variables['Build.Reason'], 'PullRequest')) }}: +- ${{ if and(eq(parameters.isOfficialBuild, true), ne(variables['Build.Reason'], 'PullRequest'), or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/main'))) }}: - task: UseDotNet@2 displayName: Install .NET 6 SDK for signing. inputs: -- cgit v1.2.3