1 2 3 4 5 6 7 8 9
#!/bin/bash if [ "$GERRIT_BRANCH" == "master" ]; then RTD_BUILD_VERSION=latest else RTD_BUILD_VERSION="${{GERRIT_BRANCH/\//-}}" fi # shellcheck disable=SC1083 curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/{rtdproject}