diff --git a/eng/common/pipelines/templates/steps/detect-api-changes.yml b/eng/common/pipelines/templates/steps/detect-api-changes.yml index 822a70fff..2525dade5 100644 --- a/eng/common/pipelines/templates/steps/detect-api-changes.yml +++ b/eng/common/pipelines/templates/steps/detect-api-changes.yml @@ -16,7 +16,7 @@ steps: filePath: ${{ parameters.RepoRoot }}/eng/common/scripts/Detect-Api-Changes.ps1 arguments: > -ArtifactPath ${{parameters.ArtifactPath}} - -CommitSha '$(Build.SourceVersion)' + -CommitSha '$(System.PullRequest.SourceCommitId)' -BuildId $(Build.BuildId) -PullRequestNumber $(System.PullRequest.PullRequestNumber) -RepoFullName $(Build.Repository.Name)