mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Trigger rebuild of hugo branch instead of deploying ourselves
This commit is contained in:
19
scripts/travis-trigger-hugo-build.sh
Normal file
19
scripts/travis-trigger-hugo-build.sh
Normal 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
|
||||
Reference in New Issue
Block a user