Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-24 21:05:37 -04:00
parent 0ec03a721b
commit 8d83576de4
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -36,7 +36,6 @@ main(){
tag_response=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${GITHUB_REPOSITORY}/tags") tag_response=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${GITHUB_REPOSITORY}/tags")
tag_name=$(echo "$tag_response" | jq -e --raw-output .[0].name) tag_name=$(echo "$tag_response" | jq -e --raw-output .[0].name)
tag_id=$(echo "$tag_response" | jq -e --raw-output .[0].id)
# Get the latest release. # Get the latest release.
latest_response=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${GITHUB_REPOSITORY}/releases/latest") latest_response=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${GITHUB_REPOSITORY}/releases/latest")
@ -53,7 +52,7 @@ main(){
# Upload the files. # Upload the files.
echo "Uploading files: ${files[*]}" echo "Uploading files: ${files[*]}"
echo "For tag name: ${tag_name} tag id: ${tag_id}" echo "For tag name: ${tag_name}"
# shellcheck disable=SC2068 # shellcheck disable=SC2068
for file in ${files[@]}; do for file in ${files[@]}; do