first commit
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user