- pwsh: |
    $prId = [regex]::match('$(resources.pipeline.OrderApiBuild.sourcebranch)','(refs/pull/)(\d*)(/merge)').Groups[2].Value
    Write-Host "##vso[task.setvariable variable=prId;]$prId"    
  displayName: 'Get PR Id'