1 parent
ec2efb3dcb
commit
e00d6adeab
1 file changed
+11
@@ -416,6 +416,17 @@ echo "==========================================="
|
||||
echo "============== PUSHING DATA ==============="
|
||||
echo "==========================================="
|
||||
|
||||
# If this a PR, then just check whether the files have generated
|
||||
# See https://github.com/AppImage/appimage.github.io/issues/476 for more information
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
cat "apps/${INPUTBASENAME}.md" || exit 1
|
||||
cat "database/${INPUTBASENAME}/*.desktop" || exit 1
|
||||
ls -lh "database/${INPUTBASENAME}/screenshot.png" || exit 1
|
||||
curl --upload-file "database/${INPUTBASENAME}/screenshot.png" https://transfer.sh/screenshot.png
|
||||
echo "Since we are on a TRAVIS_PULL_REQUEST and the required files are there, we are assuming the test is OK"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# If this is not a PR, then git add the "database file" and git commit with "[ci skip]" and git push
|
||||
# https://gist.github.com/willprice/e07efd73fb7f13f917ea
|
||||
|
||||
|
||||
Reference in new issue
Block a user