From 7692281f5f07834cf6920bf031359db75cb1329f Mon Sep 17 00:00:00 2001 From: Dan Haman Date: Sun, 27 Sep 2026 19:54:31 +0300 Subject: [PATCH] #1 : Publish generic package to gitea + curl options improved --- publish/action.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/publish/action.yaml b/publish/action.yaml index f93042c..932f8a0 100644 --- a/publish/action.yaml +++ b/publish/action.yaml @@ -20,6 +20,7 @@ runs: steps: - shell: bash run: | - curl -H "Authorization: token ${{ gitea.token}}" \ - --upload-file ${{ inputs.file }} \ - "${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}" + curl -i --fail-with-body \ + -H "Authorization: token ${{ gitea.token}}" \ + --upload-file ${{ inputs.file }} \ + "${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"