From ea538e4b329e436daf262185176cae8d724dfb10 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Tue, 4 Feb 2025 11:02:06 -0800 Subject: [PATCH] Add a workflow to trigger readthedocs rebuild --- .github/workflows/update-readthedocs.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/update-readthedocs.yml diff --git a/.github/workflows/update-readthedocs.yml b/.github/workflows/update-readthedocs.yml new file mode 100644 index 000000000..9610f70f1 --- /dev/null +++ b/.github/workflows/update-readthedocs.yml @@ -0,0 +1,21 @@ +name: Update ReadTheDocs + +on: + push: + branches: + - main + paths: + - 'docs/source/**' + - 'docs/resources/**' + - '.github/workflows/update-readthedocs.yml' + +jobs: + openapi-check: + runs-on: ubuntu-latest + steps: + - name: Trigger ReadTheDocs build + run: | + curl -X POST \ + -H "Content-Type: application/json" \ + -d '{"token": "{{ secrets.READTHEDOCS_TOKEN }}"}' \ + https://readthedocs.org/api/v2/webhook/llama-stack/289764/