hypersolana/ci/channel_restriction.sh
Yihau Chen 0e3fc9d31c
chore: add docs actions (#25029)
* chore: mv .travis/* ci/

* chore: add docs action

* chore: update mergify
2022-05-06 12:14:50 +08:00

20 lines
341 B
Bash
Executable File

#!/usr/bin/env bash
#
# Only proceed if we are on one of the channels passed in, or a tag build
#
set -ex
[[ -n $CI_TAG ]] && exit 0
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