We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e87ad27 commit a8b54bdCopy full SHA for a8b54bd
.travis/check-pr-no-readme.sh
@@ -4,7 +4,8 @@ set -Eeuo pipefail
4
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."
5
6
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
7
- if [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then
+ git fetch -q https://github.com/docker-library/docs.git master
8
+ if [ -n "$(git diff --numstat FETCH_HEAD...HEAD -- '*/README.md')" ]; then
9
echo >&2 'Error: at least one repo README.md has changed'
10
echo >&2 'These files are autogenerated, so it is unnecessary to modify them'
11
echo >&2 'Please update content.md and docker-library-bot will take care of README.md'
0 commit comments