diff --git a/.github/workflows/readthedocs-preview.yml b/.github/workflows/readthedocs-preview.yml index b0549406..110b4887 100644 --- a/.github/workflows/readthedocs-preview.yml +++ b/.github/workflows/readthedocs-preview.yml @@ -13,5 +13,10 @@ on: pull_request_target: types: - opened + paths: + - .github/workflows/readthedocs-preview.yml + - .readthedocs.yaml + - README.md + - docs/** permissions: pull-requests: write diff --git a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/readthedocs-preview.yml.jinja b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/readthedocs-preview.yml.jinja index 1090b991..3a4545f2 100644 --- a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/readthedocs-preview.yml.jinja +++ b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/readthedocs-preview.yml.jinja @@ -13,5 +13,10 @@ on: pull_request_target: types: - opened + paths: + - .github/workflows/readthedocs-preview.yml + - .readthedocs.yaml + - README.md + - docs/** permissions: pull-requests: write