diff --git a/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml b/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml index 8a386963a8..86acebc9f7 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml @@ -67,6 +67,7 @@ steps: - task: PowerShell@2 displayName: 'Signature validation for signed file(s)' + condition: and(succeeded(), eq('${{ parameters.DoEsrp }}', true)) inputs: targetType: 'inline' script: |