Skip to content

Commit

Permalink
Added User-Agent header to GitHub requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Jun 29, 2019
1 parent a0e9463 commit 0ed5b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [[ ! $app_ver =~ "-SNAPSHOT" ]]; then
fi

if [ $GITHUB_RELEASE_ENABLED = 1 ]; then
get_release_tag=$(curl -s -o /dev/null -w "%{http_code}" $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)
echo "Release tag $get_release_tag"
if [ $get_release_tag == "404" ]; then
echo "Publishing release"
Expand Down

0 comments on commit 0ed5b58

Please sign in to comment.