Trigger rebuild of hugo branch instead of deploying ourselves

This commit is contained in:
Philipp Oppermann
2016-05-02 15:24:20 +02:00
parent 2cecc5abeb
commit d056a41154
4 changed files with 24 additions and 37 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/sh
set -e
[ "$TRAVIS_BRANCH" = master ]
[ "$TRAVIS_PULL_REQUEST" = false ]
body='{
"request": {
"branch":"hugo"
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_TOKEN" \
-d "$body" \
https://api.travis-ci.org/repo/phil-opp%2Fblog_os/requests