upload-hypothesis: Don't execute on third-party PR

This commit is contained in:
Markus Unterwaditzer 2016-10-03 20:53:25 +02:00
parent be297b52df
commit 471882fc5e

View file

@ -6,6 +6,10 @@ set -e
SELF_DIR="$(dirname $0)"
GIT_COMMIT_PATH="$SELF_DIR/../.hypothesis/examples"
if [ -z "$encrypted_a527bcd44658_key" ]; then
echo "Not executing on third-party PRs"
exit 0
fi
_is_dirty() {
(! git diff-index --quiet HEAD $GIT_COMMIT_PATH) || [ "$(git status --porcelain $GIT_COMMIT_PATH | tail -n1)" != "" ]