Closed Gabriel-p closed 3 months ago
Hi, if [ "$READTHEDOCS_VERSION_TYPE" = "external"
that means that it only applies on builds from PRs, if you want to cancel builds that aren't from PRs too, you can remove that first condition.
Oh I see! I did not get that from the docs, thank you!
One more question @stsewd , is there a way to force the build when I manually trigger it from within my project even with that code in the yaml
file?
One more question @stsewd , is there a way to force the build when I manually trigger it from within my project even with that code in the yaml file?
No out of the box, maybe you can hack it with an environment variable that you manually add to your project when you want to force a build.
Sorry to bother you @stsewd but I'm stuck again.
Now it's cancelling the build https://readthedocs.org/projects/asteca/builds/24476240/ even when I'm clearly modifying contents in /docs
https://github.com/asteca/ASteCA/commit/9264712fe551e967f68e975cea1524a8f537224e
Details
Expected Result
I'm using the code shown here https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition to cancel builds when the
/docs
folder of mydevelop
branch is not changed. Here's my.readthedocs.yaml
:Actual Result
The build does not halt when I modify files outside of the
/docs
folder, as shown in the build https://readthedocs.org/projects/asteca/builds/24475781/ triggered by this commit