From 61c83c137e3355b7baa977312ef38f28c52f4edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20CHABANNE?= Date: Sun, 9 Jun 2024 02:02:50 +0200 Subject: [PATCH] test upload --- .gitea/workflows/actions.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index cd5b1e9..cf50771 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -49,9 +49,11 @@ jobs: }' \ "${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases" - RELEASE_ID=$(curl -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \ + RESPONSE=$(curl -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \ -H "Content-Type: application/json" \ - "${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases/tags/${{ gitea.ref }}" | jq -r '.id') + "${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases/tags/${{ gitea.ref }}") + echo "Response: $RESPONSE" + RELEASE_ID=$(echo $RESPONSE | jq -r '.id') curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \ -H "Content-Type: multipart/form-data" \