From 65d5e3668c135dbea518290eab1882d10439f182 Mon Sep 17 00:00:00 2001 From: vodyanoy Date: Tue, 17 Nov 2026 20:09:04 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B0=D0=BD=D0=B8=D1=82=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20ID=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=20=D0=B8=20=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B0=20?= =?UTF-8?q?URL=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7?= =?UTF-8?q?=D0=BA=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- .forgejo/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 6e662fa..d468610 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -117,11 +117,15 @@ jobs: RELEASE_ID: ${{ steps.release.outputs.id }} VERSION: ${{ steps.version.outputs.version }} run: | + RELEASE_ID=$(printf '%s' "${RELEASE_ID}" | tr -cd '0-9') + test -n "${RELEASE_ID}" for ASSET_PATH in "dist/aero-mail-${VERSION}.AppImage" "dist/aero-mail-${VERSION}-win-x64.exe" "dist/aero-mail-${VERSION}-win-x64.exe.blockmap" dist/latest.yml; do ASSET_NAME=$(basename "${ASSET_PATH}") + URL="https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}" + printf '%s' "${URL}" | od -c | head -20 curl --globoff --fail-with-body --silent --show-error -X POST \ -H "Authorization: token ${TOKEN}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"${ASSET_PATH}" \ - "https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}" + "${URL}" done