Quote the token properly

This commit is contained in:
Ashwin Bharambe 2025-02-04 11:44:29 -08:00
parent 5005939494
commit 981bb52b59

View file

@ -28,18 +28,9 @@ jobs:
exit 1
fi
y=$TOKEN
py="foo-${y}"
# echo first letter of $TOKEN
# echo last letter of $TOKEN
echo $TOKEN | cut -c 1
echo $TOKEN | cut -c -1
echo $py
response=$(curl -X POST \
-H "Content-Type: application/json" \
-d '{"token": "$TOKEN"}' \
-d "{\"token\": \"$TOKEN\"}" \
https://readthedocs.org/api/v2/webhook/llama-stack/289768/)
echo "Response: $response"