From de0c7aa864c7e3ce74ae21b91ca3788e10bd3f61 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 6 May 2025 17:31:03 -0400 Subject: [PATCH] .github: Fix RTD build retrigger Fixes: https://tracker.ceph.com/issues/70430 Signed-off-by: David Galloway (cherry picked from commit 27521bf5580d4f878fbf7cafbd854bc6ef94aed4) --- .github/workflows/retrigger-rtd.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/retrigger-rtd.yml diff --git a/.github/workflows/retrigger-rtd.yml b/.github/workflows/retrigger-rtd.yml new file mode 100644 index 0000000000000..daa4ae70f7251 --- /dev/null +++ b/.github/workflows/retrigger-rtd.yml @@ -0,0 +1,25 @@ +name: Retrigger RTD build on PR comment + +on: + issue_comment: + types: [created] + +permissions: + contents: read + pull-requests: read + +jobs: + retrigger-rtd: + if: github.event.issue.pull_request && + (contains(github.event.comment.body, 'jenkins test docs') || + contains(github.event.comment.body, 'jenkins rebuild docs') || + contains(github.event.comment.body, 'jenkins retrigger docs')) + runs-on: ubuntu-latest + + steps: + - name: Trigger Read the Docs build + run: | + curl -X POST \ + "https://readthedocs.org/api/v3/projects/ceph/versions/${{ github.event.issue.number }}/builds/" \ + -H "Authorization: Token ${{ secrets.READTHEDOCS_API_TOKEN }}" \ + -H "Content-Type: application/json" -- 2.39.5