forked from phoenix-oss/llama-stack-mirror
Use a secret again for the workflow
This commit is contained in:
parent
7392daddee
commit
5005939494
1 changed files with 7 additions and 2 deletions
9
.github/workflows/update-readthedocs.yml
vendored
9
.github/workflows/update-readthedocs.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue