Don't sync if no orb is used

Don't sync the Prometheus CircleCI orb version if it's not used by the
repo's config.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2021-03-31 09:05:59 +02:00
parent 0414534499
commit 968d7f326c
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ check_circleci_orb() {
return 1
fi
if [[ "${orb_version}" != "${prometheus_orb_version}" ]]; then
if [[ "${orb_version}" != "null" && "${orb_version}" != "${prometheus_orb_version}" ]]; then
echo "CircleCI-orb"
fi
}