#8 : Publish fails if path provided

+ extra slashes in filename issue fixed
This commit is contained in:
2026-09-28 19:46:44 +03:00
parent d5390c04ba
commit db7460ca33
3 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -20,8 +20,11 @@ runs:
using: composite
steps:
- shell: bash
env:
INPUT_FILE: ${{ inputs.file }}
run: |
set -euo pipefail
filename="${INPUT_FILE##*/}"
if [[ "${{ inputs.force }}" == "true" ]]; then
status="$(
curl --silent --show-error --output /dev/null --write-out '%{http_code}' \
@@ -41,4 +44,4 @@ runs:
curl --fail-with-body \
--user "acti-bot:${ACTI_BOT_TOKEN}" \
--upload-file ${{ inputs.file }} \
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${filename}"