Skip to content

Commit

Permalink
#493 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Nov 11, 2024
1 parent b63304a commit 49b2f69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions devops/.validate-publishing.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -xeuo pipefail

([[ "$CI_PULL_REQUEST" == "true" ]] && echo "Publishing not allowed on P/Rs" && exit 0) || true
([[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] && echo "Publishing not allowed (CI_BRANCH=$CI_BRANCH, CI_BRANCH_TAG=$CI_BRANCH_TAG)" && exit 0) || true
([[ "$CI_PULL_REQUEST" == "true" ]] && echo "Publishing not allowed on P/Rs" && exit 1) || exit 0
([[ ! ("$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
2 changes: 1 addition & 1 deletion devops/publish-scala.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
set -x

source ./devops/.env.sh
source ./devops/.validate-publishing.sh
source ./devops/.validate-publishing.sh || exit 0

[[ -z "$SONATYPE_USERNAME" ]] && echo "Missing SONATYPE_USERNAME" && exit 1
[[ -z "$SONATYPE_PASSWORD" ]] && echo "Missing SONATYPE_PASSWORD" && exit 1
Expand Down

0 comments on commit 49b2f69

Please sign in to comment.