From 5c87334d430e421dc175c224c5ee57acf148f458 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 7 Feb 2024 08:39:17 +1100 Subject: [PATCH] Fixed an incorrect url --- Scripts/drone-upload-exists.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/drone-upload-exists.sh b/Scripts/drone-upload-exists.sh index 2a479f232..5dd50f1a4 100755 --- a/Scripts/drone-upload-exists.sh +++ b/Scripts/drone-upload-exists.sh @@ -13,8 +13,8 @@ prefix="session-ios-" suffix="-${DRONE_COMMIT:0:9}-sim.tar.xz" # Extracting head.label using string manipulation -echo "Extracting repo information for 'https://api.github.com/repos/oxen-io/${DRONE_REPO}/pulls/${DRONE_PULL_REQUEST}'" -pr_info=$(curl -s https://api.github.com/repos/oxen-io/${DRONE_REPO}/pulls/${DRONE_PULL_REQUEST}) +echo "Extracting repo information for 'https://api.github.com/repos/${DRONE_REPO}/pulls/${DRONE_PULL_REQUEST}'" +pr_info=$(curl -s https://api.github.com/repos/${DRONE_REPO}/pulls/${DRONE_PULL_REQUEST}) pr_info_clean=$(echo "$pr_info" | tr -d '[:space:]') head_info=$(echo "$pr_info_clean" | sed -n 's/.*"head"\(.*\)"base".*/\1/p') fork_repo=$(echo "$head_info" | grep -o '"full_name":"[^"]*' | sed 's/"full_name":"//')