Skip to content

Commit

Permalink
Sending credentials on tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Jun 29, 2019
1 parent b46c0ca commit d3831ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ if [[ ! $app_ver =~ "-SNAPSHOT" ]]; then
fi

if [ $GITHUB_RELEASE_ENABLED = 1 ]; then
curl -s -H 'User-Agent: CI' $repo_url/releases/tags/$app_ver
get_release_tag=$(curl -s -o /dev/null -w "%{http_code}" -H 'User-Agent: CI' $repo_url/releases/tags/$app_ver)
get_release_tag=$(curl -u $GITHUB_USER:$GITHUB_PASS -s -o /dev/null -w "%{http_code}" $repo_url/releases/tags/$app_ver)
echo "Release tag $get_release_tag"
if [ $get_release_tag == "404" ]; then
echo "Publishing release"
Expand Down

0 comments on commit d3831ea

Please sign in to comment.