fix tag extraction for gitea
This commit is contained in:
@@ -38,13 +38,16 @@ jobs:
|
||||
env:
|
||||
GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }}
|
||||
run: |
|
||||
TAG=${GITHUB_REF#refs/tags/}
|
||||
echo "Tag is: $TAG"
|
||||
|
||||
RELEASE=$(curl -s -X POST \
|
||||
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"${{ github.ref_name }}\",
|
||||
\"name\": \"${{ github.ref_name }}\",
|
||||
\"body\": \"Release ${{ github.ref_name }}\",
|
||||
\"tag_name\": \"$TAG\",
|
||||
\"name\": \"$TAG\",
|
||||
\"body\": \"Release $TAG\",
|
||||
\"draft\": false,
|
||||
\"prerelease\": false
|
||||
}" \
|
||||
|
||||
Reference in New Issue
Block a user