Skip to content

Commit

Permalink
[release/7.0] Only attempt to use ESRP connection in approved branches (
Browse files Browse the repository at this point in the history
#74942)

* Only attempt to use ESRP connection in approved branches

* Update sign-diagnostic-files.yml

Add main
  • Loading branch information
mmitche committed Sep 2, 2022
1 parent ed775e2 commit eb5d3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/templates/sign-diagnostic-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb5d3f9

Please sign in to comment.