1set -eu 2 3GITHUB_BRANCH=${GITHUB_REF#refs/heads/} 4 5if [ "$GITHUB_REPOSITORY" == "google/volley" ] && \ 6 [ "$GITHUB_EVENT_NAME" == "push" ] && \ 7 [ "$GITHUB_BRANCH" == "master" ]; then 8 echo -e "Publishing snapshot build...\n" 9 10 ./gradlew publish 11 12 echo -e "Published snapshot build" 13else 14 echo -e "Not publishing snapshot" 15fi 16