This is an automated email from the ASF dual-hosted git repository.
zhaijia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-test-infra.git
The following commit(s) were added to refs/heads/master by this push:
new f933605 revert changes for diff-only (#7)
f933605 is described below
commit f9336053465973e26d622569e2774b17c6bd0809
Author: Yijie Shen <[email protected]>
AuthorDate: Sat Feb 22 12:47:49 2020 +0800
revert changes for diff-only (#7)
This revert #6 since it doesn't work.
---
diff-only/entrypoint.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/diff-only/entrypoint.sh b/diff-only/entrypoint.sh
index 2a5a6b2..d2c6f86 100755
--- a/diff-only/entrypoint.sh
+++ b/diff-only/entrypoint.sh
@@ -7,8 +7,9 @@ COMMITS=$(jq '.pull_request.commits' "${GITHUB_EVENT_PATH}")
echo "COMMITS: ${COMMITS}"
git --version
+git rev-parse --abbrev-ref HEAD
-CHANGED_DIRS=$(git diff --dirstat=files,0 ${GITHUB_SHA}~${COMMITS} | awk '{
print $2 }')
+CHANGED_DIRS=$(git diff --dirstat=files,0 HEAD~${COMMITS} | awk '{ print $2 }')
echo "CHANGED_DIRS are : ${CHANGED_DIRS}"
found_changed_dir_not_in_target_dirs="no"