Skip to content

Commit

Permalink
proper head
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Jul 2, 2020
1 parent 304add5 commit 0452db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/azure-pipelines/build_properties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function is_docs_only_pullrequest() {
# 3. Get number of commits in PR
GITHUB_NUM_COMMITS=`echo $GITHUB_PULL_DETAIL | jq -r ".commits"`

if [[ $(git diff --name-only $GITHUB_PULL_HEAD_SHA..$GITHUB_PULL_HEAD_SHA~$GITHUB_NUM_COMMITS | grep -v "docs/") == "" ]] ; then
if [[ $(git diff --name-only HEAD..HEAD~$GITHUB_NUM_COMMITS | grep -v "docs/") == "" ]] ; then
echo "INFO: This is a docs only change. Changed files:"
git diff --name-only $GITHUB_PULL_HEAD_SHA..$GITHUB_PULL_HEAD_SHA~$GITHUB_NUM_COMMITS
git diff --name-only HEAD..HEAD~$GITHUB_NUM_COMMITS
return 0
fi
return 1
Expand Down

0 comments on commit 0452db3

Please sign in to comment.