From 85b1673d0dde4f4e84fda95e8bf8fe3793572307 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Fri, 19 Dec 2025 17:33:24 -0500 Subject: [PATCH] Try temp file with data binary file --- .forgejo/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 824b1ea..2f3ec08 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -69,12 +69,12 @@ jobs: if [ "$RELEASE_ID" = "null" ] || [ -z "$RELEASE_ID" ]; then echo "Creating release for ${TAG}..." - JSON_PAYLOAD=$(printf '{"tag_name": "%s", "name": "%s"}' "$TAG" "$TAG") - echo "Payload: ${JSON_PAYLOAD}" + echo '{"tag_name": "'"${TAG}"'", "name": "'"${TAG}"'"}' > /tmp/payload.json + cat /tmp/payload.json RESPONSE=$(curl -sv --http1.1 -X POST \ -H "Content-Type: application/json" \ -H "Authorization: token ${FORGEJO_TOKEN}" \ - -d "$JSON_PAYLOAD" \ + --data-binary @/tmp/payload.json \ "${API_BASE}/repos/${REPO}/releases" 2>&1) echo "Full response: ${RESPONSE}" RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)