X Tutup
Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 1cb65c7

Browse files
committed
Changelog: Minor touchups to scripts.
1 parent ce8d18f commit 1cb65c7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

scripts/changelog.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ readonly CHANGELOG="changelog.txt"
1919
readonly DATE=$(date +"%Y-%m-%d")
2020
readonly REPO="https://github.com/cloudbox/cloudbox"
2121
readonly 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
2526
readonly TRUE=1

scripts/release.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
# Variables
55
################################
66

7-
readonly CHANGELOG="changelog.txt"
8-
readonly DATE=$(date +"%Y-%m-%d")
97
readonly REPO="cloudbox/cloudbox"
108
readonly 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
@@ -19,7 +18,7 @@ set -e
1918

2019
NAME="${TAG}"
2120

22-
BODY=$(bash scripts/changelog.sh -s)
21+
BODY=$(bash "$CHANGELOG_SCRIPT" -s)
2322

2423
payload=$(
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:

0 commit comments

Comments
 (0)
X Tutup