@@ -108,7 +108,7 @@ To avoid this, it's possible to unshallow the clone done by Read the Docs:
108
108
Cancel build based on a condition
109
109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110
110
111
- When a command exits with code ``439 ``,
111
+ When a command exits with code ``183 ``,
112
112
Read the Docs will cancel the build immediately.
113
113
We can use this approach to cancel builds we don't want to complete based on a condition.
114
114
@@ -128,9 +128,9 @@ Here is an example that cancels builds from pull requests when there are no chan
128
128
# `--quiet` exits with a 1 when there **are** changes,
129
129
# so we invert the logic with a !
130
130
#
131
- # If there are no changes (exit 0) we force the command to return with 439 .
131
+ # If there are no changes (exit 0) we force the command to return with 183 .
132
132
# This is a special exit code on Read the Docs that will cancel the build immediately.
133
- - if [ $READTHEDOCS_VERSION_TYPE = "external" ]; then ! git diff --quiet origin/main -- docs/ && exit 439 ; fi
133
+ - if [ $READTHEDOCS_VERSION_TYPE = "external" ]; then ! git diff --quiet origin/main -- docs/ && exit 183 ; fi
134
134
135
135
136
136
This other example shows how to cancel a build if the commit message contains ``skip ci `` on it:
@@ -146,8 +146,8 @@ This other example shows how to cancel a build if the commit message contains ``
146
146
jobs :
147
147
post_checkout :
148
148
# Use `git log` to check if the latest commit contains "skip ci",
149
- # in that case exit the command with 439 to cancel the build
150
- - case `git --no-pager log --pretty="tformat:%s" -1` in *"skip ci"*) exit 439 ;; *);; esac
149
+ # in that case exit the command with 183 to cancel the build
150
+ - case `git --no-pager log --pretty="tformat:%s" -1` in *"skip ci"*) exit 183 ;; *);; esac
151
151
152
152
153
153
Generate documentation from annotated sources with Doxygen
0 commit comments