diff --git a/.gitea/workflows/updateRelease.yaml b/.gitea/workflows/updateRelease.yaml index be77895..275a551 100644 --- a/.gitea/workflows/updateRelease.yaml +++ b/.gitea/workflows/updateRelease.yaml @@ -34,8 +34,10 @@ jobs: API_TOKEN=${{ vars.PAT_TOKEN }} # Fetch Release + tag=$(echo "${{ inputs.tag }}" | sed 's/\//%2F/g') + release=$(curl -s -H "Authorization: token $API_TOKEN" \ - "$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/releases/tags/${{ inputs.tag }}") + "$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/releases/tags/$tag") # Extract the ID of the Release release_id=$(echo $release | jq -r '.id')