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