Skip to content

Commit

Permalink
Merge pull request #97 from FundingCircle/fix-promote-build
Browse files Browse the repository at this point in the history
Fix the promote build
  • Loading branch information
bliof-fc authored Nov 21, 2023
2 parents 4f54148 + 6497f8c commit 24fc43c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/check_gem_version
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo -n "Checking existing available versions of gem... ";
current_version="$(ruby -e 'require "./lib/vault/rails/version.rb";puts Vault::Rails::VERSION')";
version_info_json=$(curl -s -u "$ARTIFACTORY_USER":"$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-local/api/v1/versions/active-codas.json);
version_info_json=$(curl -s -u "$ARTIFACTORY_USER":"$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-local/api/v1/versions/fc-vault-rails.json);

if echo "$version_info_json" | jq -e '[.[] | select(.number|test("'$current_version'"))]|length==0' > /dev/null; then
echo -e '\e[32mOK\e[0m';
Expand All @@ -9,6 +9,6 @@ else
echo 'Existing published versions:';
echo "$version_info_json" | jq 'map(.number)';
echo -e 'Your version: \e[31m'$current_version'\e[0m.';
echo 'Please bump the version in `lib/active_codas/version.rb`.'
echo 'Please bump the version in `lib/vault/rails/version.rb`.'
exit 1;
fi
fi

0 comments on commit 24fc43c

Please sign in to comment.