fixed tag url problem
This commit is contained in:
parent
e3ce6c094b
commit
7a4281f48a
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user