Skip to content

Commit 7c8f5e9

Browse files
committed
fix: Får filteret til å fange litt bredere. I loggen fikk vi med {? i upload url'en så hjalp ikke å bare fjerne {?name...
1 parent 86ac5b1 commit 7c8f5e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/buildAndPublish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ jobs:
228228
exit 1
229229
fi
230230
231-
UPLOAD_URL=$(echo "$body" | jq -r '.upload_url | sub("{?name,label}"; "") // ""')
231+
# Extract upload_url and remove any trailing template parameters
232+
UPLOAD_URL=$(echo "$body" | jq -r '.upload_url | sub("\\{.*$"; "") // ""')
232233
if [ -z "$UPLOAD_URL" ]; then
233234
echo "${red}Failed to extract upload_url from response${reset}"
234235
echo "Parsed output: $(echo "$body" | jq '.')"

0 commit comments

Comments
 (0)