Skip to content

Commit d488e5f

Browse files
committed
fix ci publish
1 parent 7337159 commit d488e5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devops/.validate-publishing.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22
set -xeuo pipefail
33

4-
([[ "$CI_PULL_REQUEST" == "true" ]] && echo "Publishing not allowed on P/Rs" && exit 1) || exit 0
5-
([[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] && echo "Publishing not allowed (CI_BRANCH=$CI_BRANCH, CI_BRANCH_TAG=$CI_BRANCH_TAG)" && exit 1) || exit 0
4+
([[ "$CI_PULL_REQUEST" == "true" ]] && echo "Publishing not allowed on P/Rs" && exit 1) || true
5+
([[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] && echo "Publishing not allowed (CI_BRANCH=$CI_BRANCH, CI_BRANCH_TAG=$CI_BRANCH_TAG)" && exit 1) || true

0 commit comments

Comments
 (0)