From ddd5a6e691911bce8c23f0a8e4deb946955d0a6d Mon Sep 17 00:00:00 2001 From: Adam Sherwood Date: Sun, 19 Jan 2025 01:54:24 +0100 Subject: [PATCH] Specify the host so the API always finds the release. (#1103) --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index cc384db..570b970 100644 --- a/build.sh +++ b/build.sh @@ -67,7 +67,7 @@ if [ ! -d "$TARGET_DIR" ]; then fi if test_command "gh" && test_gh_auth; then - gh release download --repo "$REPO_OWNER/$REPO_NAME" --pattern "*$ARTIFACT_NAME_PATTERN*" --clobber --output - | tar -zxv -C "$TARGET_DIR" + gh release download --repo "github.com/$REPO_OWNER/$REPO_NAME" --pattern "*$ARTIFACT_NAME_PATTERN*" --clobber --output - | tar -zxv -C "$TARGET_DIR" else # Get the artifact download URL ARTIFACT_URL=$(curl -s "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/releases/latest" | grep "browser_download_url" | cut -d '"' -f 4 | grep $ARTIFACT_NAME_PATTERN)