ci: Update RTDs trigger conditional

Trigger on main, on a branch called `docs-preview*`, or on any tag.
This commit is contained in:
Krystine Sherwin 2024-08-27 09:56:07 +12:00
parent 83692075df
commit a20756676c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ jobs:
docs/source/code_examples docs/source/code_examples
- name: Trigger RTDs build - name: Trigger RTDs build
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/docs-preview') || startsWith(github.ref, 'refs/tags/') }}
uses: dfm/rtds-action@v1.1.0 uses: dfm/rtds-action@v1.1.0
with: with:
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }} webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}