summaryrefslogtreecommitdiff
path: root/.azurepipelines/templates/platform-build-run-steps.yml
diff options
context:
space:
mode:
Diffstat (limited to '.azurepipelines/templates/platform-build-run-steps.yml')
-rw-r--r--.azurepipelines/templates/platform-build-run-steps.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.azurepipelines/templates/platform-build-run-steps.yml b/.azurepipelines/templates/platform-build-run-steps.yml
index ebf674b..97e7faa 100644
--- a/.azurepipelines/templates/platform-build-run-steps.yml
+++ b/.azurepipelines/templates/platform-build-run-steps.yml
@@ -51,6 +51,12 @@ steps:
# Set default
- bash: echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}"
+# Fetch the target branch so that pr_eval can diff them.
+# Seems like azure pipelines/github changed checkout process in nov 2020.
+- script: git fetch origin $(System.PullRequest.targetBranch)
+ displayName: fetch target branch
+ condition: eq(variables['Build.Reason'], 'PullRequest')
+
# trim the package list if this is a PR
- task: CmdLine@1
displayName: Check if ${{ parameters.build_pkg }} need testing