From cb7706ca900ed2c6c7ee573f6aa58652495d3b2e Mon Sep 17 00:00:00 2001 From: vodyanoy Date: Tue, 17 Nov 2026 20:17:53 +0700 Subject: [PATCH] =?UTF-8?q?ID=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=91=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D1=84=D0=B0=D0=B9=D0=BB=20?= =?UTF-8?q?=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20outputs?= 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, 2 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index d468610..0b65a66 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -109,20 +109,18 @@ jobs: "https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases") RELEASE_ID=$(printf '%s' "$RELEASE" | node -e 'let input = ""; process.stdin.on("data", chunk => { input += chunk }); process.stdin.on("end", () => { const release = JSON.parse(input); if (!Number.isSafeInteger(release.id)) throw new Error("Некорректный ID релиза"); console.log(release.id) })') - echo "id=${RELEASE_ID}" >> "$GITHUB_OUTPUT" + printf '%s' "${RELEASE_ID}" > /tmp/release-id.txt - name: Upload Linux and Windows release files env: TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_ID: ${{ steps.release.outputs.id }} VERSION: ${{ steps.version.outputs.version }} run: | - RELEASE_ID=$(printf '%s' "${RELEASE_ID}" | tr -cd '0-9') + RELEASE_ID=$(tr -cd '0-9' < /tmp/release-id.txt) 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" \