Any approach to disable the preview build for certain pull requests?
huxuan opened this issue · 2 comments
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)?
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.
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.