You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might want to cancel a build programmatically when certain conditions are met.
164
164
You can do this through your {file}`.readthedocs.yaml` file.
165
-
Read the Docs covers a few scenarios in its documentation, [Cancel build based on a condition](https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition).
165
+
Read the Docs covers a few scenarios in its documentation, [Cancel build based on a condition](https://docs.readthedocs.com/platform/stable/build-customization.html).
166
166
167
167
168
168
#### Build only on changes
@@ -178,19 +178,19 @@ build:
178
178
os: "ubuntu-22.04"
179
179
tools:
180
180
python: "3.12"
181
-
jobs:
182
-
post_checkout:
183
-
# Cancel building pull requests when there aren't changes in the docs directory or YAML file.
184
-
# You can add any other files or directories that you'd like here as well,
185
-
# like your docs requirements file, or other files that will change your docs build.
186
-
#
187
-
# If there are no changes (git diff exits with 0) we force the command to return with 183.
188
-
# This is a special exit code on Read the Docs that will cancel the build immediately.
0 commit comments