Use a secret again for the workflow

This commit is contained in:
Ashwin Bharambe 2025-02-04 11:42:47 -08:00
parent 7392daddee
commit 5005939494

View file

@ -30,12 +30,17 @@ jobs:
y=$TOKEN y=$TOKEN
py="foo-${y}" 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 echo $py
response=$(curl -X POST \ response=$(curl -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"token": "17d374d5a988931656c1ef951151841f5681262f"}' \ -d '{"token": "$TOKEN"}' \
https://readthedocs.org/api/v2/webhook/llama-stack/289766/) https://readthedocs.org/api/v2/webhook/llama-stack/289768/)
echo "Response: $response" echo "Response: $response"
if [ $(echo $response | jq -r '.build_triggered') != 'true' ]; then if [ $(echo $response | jq -r '.build_triggered') != 'true' ]; then