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