diff options
author | Matt Mitchell <mmitche@microsoft.com> | 2022-09-02 18:53:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 18:53:01 +0300 |
commit | eb5d3f9be211f1f684ad94721331a49ac9850cd1 (patch) | |
tree | 74ff75ab3519c2bc8d4f54f36f5d0ac4d248e877 /eng | |
parent | ed775e24220f53750b5c3d50afdefa0864234267 (diff) |
[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
Diffstat (limited to 'eng')
-rw-r--r-- | eng/pipelines/coreclr/templates/sign-diagnostic-files.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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: |