1
0
mirror of https://github.com/ru-de/faq.git synced 2024-11-10 04:31:01 +00:00

Travis #825: sync github pages

This commit is contained in:
Travis CI 2018-05-13 20:22:55 +00:00
parent 22522d5d21
commit d9fa771180

View File

@ -29,6 +29,10 @@ done < /tmp/changed_files
jq -s '[.[][]]' /tmp/comments.json > /tmp/comments_array.json jq -s '[.[][]]' /tmp/comments.json > /tmp/comments_array.json
cat /tmp/comments_array.json
[ "${TRAVIS_PULL_REQUEST}" != "false" ] || exit 0
curl -s https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST/comments > /tmp/pr_comments.json curl -s https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST/comments > /tmp/pr_comments.json
github_comments_diff -comments /tmp/comments_array.json -exists-comments /tmp/pr_comments.json > /tmp/send_comments.json github_comments_diff -comments /tmp/comments_array.json -exists-comments /tmp/pr_comments.json > /tmp/send_comments.json
@ -40,6 +44,4 @@ if [ $EXIT_CODE -ne 0 ]; then
github_comments_send -file /tmp/send_comments.json -repo $TRAVIS_REPO_SLUG -pr $TRAVIS_PULL_REQUEST github_comments_send -file /tmp/send_comments.json -repo $TRAVIS_REPO_SLUG -pr $TRAVIS_PULL_REQUEST
fi fi
cat /tmp/comments_array.json
exit $EXIT_CODE exit $EXIT_CODE