Fix travis-ci publish script [ci skip]

This commit is contained in:
Manuel de Brito Fontes 2017-10-25 23:14:49 -03:00
parent 65a7f0729b
commit be1fd6198c

View file

@ -29,7 +29,7 @@ fi
function publish() {
body=$(cat <<'EOF'
body=$(cat <<EOF
{
"request": {
"branch": "master",
@ -43,13 +43,13 @@ body=$(cat <<'EOF'
EOF
)
echo curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $1" \
--data "'$body'" \
https://api.travis-ci.org/repo/kubernetes%2Fingress-nginx/requests
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $1" \
--data "$body" \
https://api.travis-ci.org/repo/kubernetes%2Fingress-nginx/requests
}
case "$1" in