1
0

fixed tag url problem

This commit is contained in:
Marco Maatz 2024-10-22 08:52:22 +02:00
parent e3ce6c094b
commit 7a4281f48a

View File

@ -34,8 +34,10 @@ jobs:
API_TOKEN=${{ vars.PAT_TOKEN }} API_TOKEN=${{ vars.PAT_TOKEN }}
# Fetch Release # Fetch Release
tag=$(echo "${{ inputs.tag }}" | sed 's/\//%2F/g')
release=$(curl -s -H "Authorization: token $API_TOKEN" \ 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 # Extract the ID of the Release
release_id=$(echo $release | jq -r '.id') release_id=$(echo $release | jq -r '.id')