Ocelot-Social/scripts/trigger_build.sh
2018-12-10 13:24:55 +01:00

25 lines
523 B
Bash
Executable File

#!/usr/bin/env bash
body=$(cat<< EOF
{
"request": {
"message": "Triggered by \`$TRAVIS_REPO_SLUG\` on \`$TRAVIS_BRANCH\`",
"config": {
"merge_mode": "deep_merge",
"env": {
"COMMON_BRANCH": "$TRAVIS_BRANCH"
}
}
}
}
EOF
)
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.com/repo/Human-Connection%2FHuman-Connection/requests