Allow PatchCheck only in PR condition

The master build trigger does not have PullRequest variable.
This will allow PatchCheck to be run only in PR condition.

Signed-off-by: Aiden Park <aiden.park@intel.com>
This commit is contained in:
Aiden Park 2020-12-02 00:14:08 -08:00 committed by Maurice Ma
parent 8be5159c25
commit 0b7c653cfd
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ jobs:
git fetch origin $(System.PullRequest.TargetBranch):$(System.PullRequest.TargetBranch)
python BaseTools/Scripts/PatchCheck.py $(System.PullRequest.TargetBranch)..$(System.PullRequest.SourceCommitId)
displayName: Check patch format
condition: eq(variables['Build.Reason'], 'PullRequest')
- bash: |
sudo apt-get install -y nasm uuid-dev iasl qemu