Skip to content

Commit

Permalink
ci: fixing upload path for tag id lookup in Cirrus
Browse files Browse the repository at this point in the history
Fixing the upload path to be $id rather than tag/$id

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Feb 28, 2023
1 parent 2d9d126 commit 1e62f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirrus_ci_post_freebsd_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [ -f "$file_to_upload" ]; then
id=$(echo "$response" | grep -m 1 "id.:" | grep -w id | tr : = | tr -cd '[[:alnum:]]=' | cut -d= -f2)

if [ "$id" != "" ]; then
url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/tag/$id/assets?name=$name"
url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$id/assets?name=$name"
else
echo "Failed to get ID for uploading cirrus tag assets"
fi
Expand Down

0 comments on commit 1e62f50

Please sign in to comment.