Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 == ''}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: ${{ inputs.rtds_webhook_url != '' && inputs.rtds_webhook_token == ''}}
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 }}