first commit

This commit is contained in:
2025-01-12 19:24:47 +00:00
parent f902085dd0
commit 3a7e1bddfb
3 changed files with 55 additions and 14 deletions

View File

@@ -2,6 +2,18 @@
set -e
PRTITLE="$1"
echo "$PRTITLE" > /tmp/prtitle.txt
conventional-pre-commit --no-color --force-scope --strict --verbose /tmp/prtitle.txt
SERVER_URL="$1"
REPOSITORY="$2"
RELEASE_NAME="$3"
TAG_NAME="$4"
IS_DRAFT="$5"
IS_PRERELEASE="$6"
RELEASE_BODY="$7"
API_TOKEN="$8"
curl -s -X POST \
-H "Authorization: token $API_TOKEN" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"$TAG_NAME\", \"name\": \"$RELEASE_NAME\", \"body\": \"$RELEASE_BODY\"}" \
"$SERVER_URL/api/v1/repos/$REPOSITORY/releases"