readthedocs / actions

GitHub Actions for Read the Docs
MIT License
33 stars 10 forks source link

Any approach to disable the preview build for certain pull requests? #39

Closed huxuan closed 5 months ago

huxuan commented 5 months ago

Seems what the "readthedocs/actions/preview" action do is adding preview links to the pull request description. With certain "paths" configuration according to the documentation, even though the preview links will not be added, but it seems that the buld process is still triggerred. Any approach to disable the build process (to save resources)?

humitos commented 5 months ago

Hi, the GitHub action is not related with the build process itself. So, it cannot be skipped using this action.

However, you can take a look at https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition to skip the build itself on Read the Docs by defining a custom command.

Let me know if that helps.

huxuan commented 5 months ago

However, you can take a look at https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition to skip the build itself on Read the Docs by defining a custom command.

Wow, that looks cool! I will further investigate on it.

Thanks for your help!

Close this isuue then.