Tighten docs publishing flow (#12572)

This commit is contained in:
Dan Albert
2020-09-30 11:24:00 -06:00
committed by GitHub
parent 22d16c69b7
commit ede19ef33b
3 changed files with 20 additions and 18 deletions

17
.travis/channel_restriction.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
#
# Only proceed if we are on one of the channels passed in when calling this file
#
set -ex
eval "$(ci/channel-info.sh)"
for acceptable_channel in "$@"; do
if [[ "$CHANNEL" == "$acceptable_channel" ]]; then
exit 0
fi
done
echo "Not running from one of the following channels: $*"
exit 1