Skip to content

Commit

Permalink
fix the URL
Browse files Browse the repository at this point in the history
also do not print if GITHUB_OUTPUT env var is empty
  • Loading branch information
vladak committed Aug 1, 2024
1 parent bec4d9b commit a7f2ef9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dev/get_upload_url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#

echo "Getting upload URL for $OPENGROK_TAG"
upload_url=$( curl -s https://api.github.com/repos/oracle/opengrok/releases/$OPENGROK_TAG | jq -r .upload_url )
echo "Got $upload_url"
echo "upload_url=$upload_url" >> $GITHUB_OUTPUT"
upload_url=$( curl -s https://api.github.com/repos/oracle/opengrok/releases/tags/$OPENGROK_TAG | jq -r .upload_url )
echo "Got '$upload_url'"
if [[ -n $GITHUB_OUTPUT ]]; then
echo "upload_url=$upload_url" >> $GITHUB_OUTPUT
fi

0 comments on commit a7f2ef9

Please sign in to comment.