mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
check for no links in link file and fail if not pull request
This commit is contained in:
@@ -27,6 +27,9 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
echo "link validation failed!"
|
||||
exit 1
|
||||
else
|
||||
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||
echo "no links to check on $TRAVIS_BRANCH branch - script failure!"
|
||||
fi
|
||||
echo "link validation passed!"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user