Rich Bennett | 5768a92 | 2017-08-11 14:18:48 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | if [ "$GERRIT_BRANCH" == "master" ]; then | ||||
3 | RTD_BUILD_VERSION=latest | ||||
4 | else | ||||
5 | RTD_BUILD_VERSION="${{GERRIT_BRANCH/\//-}}" | ||||
6 | fi | ||||
7 | |||||
8 | # shellcheck disable=SC1083 | ||||
Rich Bennett | 80d846f | 2019-01-09 11:31:16 -0500 | [diff] [blame] | 9 | curl -X POST \ |
10 | -d "branches=$RTD_BUILD_VERSION" \ | ||||
11 | -d "token=$DOCS_RTD_TOKEN" \ | ||||
12 | https://readthedocs.org/api/v2/webhook/{rtdproject} |