forked from phoenix-oss/llama-stack-mirror
Debug workflow
This commit is contained in:
parent
b35930a7e5
commit
5233666143
1 changed files with 13 additions and 2 deletions
15
.github/workflows/update-readthedocs.yml
vendored
15
.github/workflows/update-readthedocs.yml
vendored
|
@ -15,7 +15,18 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Trigger ReadTheDocs build
|
- name: Trigger ReadTheDocs build
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
if [ -z "{{ secrets.READTHEDOCS_TOKEN }}" ]; then
|
||||||
|
echo "READTHEDOCS_TOKEN is not set"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
response=$(curl -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"token": "{{ secrets.READTHEDOCS_TOKEN }}"}' \
|
-d '{"token": "{{ secrets.READTHEDOCS_TOKEN }}"}' \
|
||||||
https://readthedocs.org/api/v2/webhook/llama-stack/289764/
|
https://readthedocs.org/api/v2/webhook/llama-stack/289764/)
|
||||||
|
|
||||||
|
echo $response
|
||||||
|
if [ $(echo $response | jq -r '.build_triggered') != 'true' ]; then
|
||||||
|
echo "Failed to trigger ReadTheDocs build"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue