From 2b702e87e34a13db6d15eaa628c8deca762837f9 Mon Sep 17 00:00:00 2001 From: Frederic Boudon Date: Thu, 25 Jan 2024 15:09:39 +0100 Subject: [PATCH] First draft for read the doc integration --- action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/action.yml b/action.yml index cba3f3d..1f0ef70 100644 --- a/action.yml +++ b/action.yml @@ -44,6 +44,14 @@ inputs: description: Build options for conda build. required: false default: '' + rtds_webhook_url: + description: Webhook url to generate the doc on readthedocs. + required: false + default: '' + rtds_webhook_token: + description: Webhook token to generate the doc on readthedocs. + required: false + default: '' runs: using: "composite" steps: @@ -172,3 +180,11 @@ runs: done echo "::endgroup::" shell: bash -l {0} + - name: Trigger RTDs build + id: readthedocs-trigger + if: ${{ inputs.rtds_webhook_url != '' && inputs.rtds_webhook_token == ''}} + uses: dfm/rtds-action@v1 + with: + webhook_url: ${{ inputs.rtds_webhook_url }} + webhook_token: ${{ rtds_webhook_url.rtds_webhook_token }} + commit_ref: ${{ github.ref }}