This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ readonly CHANGELOG="changelog.txt"
1919readonly DATE=$( date +" %Y-%m-%d" )
2020readonly REPO=" https://github.com/cloudbox/cloudbox"
2121readonly PREVIOUS_VERSION=$( git describe --abbrev=0 --tags)
22- readonly NEXT_VERSION=$( echo $PREVIOUS_VERSION | awk -F. -v OFS=. ' NF==1{print ++$NF}; NF>1{$NF=sprintf("%0*d", length($NF), ($NF+1)); print}' )
22+ readonly NEXT_VERSION=$( echo $PREVIOUS_VERSION \
23+ | awk -F. -v OFS=. ' NF==1{print ++$NF}; NF>1{$NF=sprintf("%0*d", length($NF), ($NF+1)); print}' )
2324
2425# Boolean vars
2526readonly TRUE=1
Original file line number Diff line number Diff line change 44# Variables
55# ###############################
66
7- readonly CHANGELOG=" changelog.txt"
8- readonly DATE=$( date +" %Y-%m-%d" )
97readonly REPO=" cloudbox/cloudbox"
108readonly TAG=$( git describe --abbrev=0 --tags \
119 | awk -F. -v OFS=. ' NF==1{print ++$NF}; NF>1{$NF=sprintf("%0*d", length($NF), ($NF+1)); print}' )
10+ readonly CHANGELOG_SCRIPT=" scripts/changelog.sh"
1211
1312# ###############################
1413# Main
1918
2019NAME=" ${TAG} "
2120
22- BODY=$( bash scripts/changelog.sh -s)
21+ BODY=$( bash " $CHANGELOG_SCRIPT " -s)
2322
2423payload=$(
2524 jq --null-input \
@@ -38,9 +37,6 @@ response=$(
3837 " https://api.github.com/repos/${REPO} /releases"
3938)
4039
41- upload_url=" $( echo " $response " | jq -r .upload_url | sed -e " s/{?name,label}//" ) "
42-
43-
4440# Modifications by desimaniac @ github.com
4541#
4642# Source:
You can’t perform that action at this time.
0 commit comments