Versiyonları oluştur
This commit is contained in:
parent
5e1a62081a
commit
d406d8956e
1 changed files with 5 additions and 4 deletions
|
|
@ -3,9 +3,8 @@ set -e
|
||||||
|
|
||||||
echo "> version.json oluşturuluyor..."
|
echo "> version.json oluşturuluyor..."
|
||||||
|
|
||||||
cd ~/kurs-platform/ui
|
# En yeni tag en üstte olsun
|
||||||
|
VERSIONS=$(git tag --sort=-creatordate)
|
||||||
VERSIONS=$(git tag --sort=creatordate)
|
|
||||||
|
|
||||||
OUTPUT="{\"releases\":["
|
OUTPUT="{\"releases\":["
|
||||||
|
|
||||||
|
|
@ -14,7 +13,9 @@ for TAG in $VERSIONS; do
|
||||||
VER=$(echo $TAG | sed 's/^v//')
|
VER=$(echo $TAG | sed 's/^v//')
|
||||||
DATE=$(git log -1 --format=%ad --date=short $TAG)
|
DATE=$(git log -1 --format=%ad --date=short $TAG)
|
||||||
COMMIT=$(git rev-list -n 1 $TAG)
|
COMMIT=$(git rev-list -n 1 $TAG)
|
||||||
MESSAGE=$(git tag -l --format="%(contents)" $TAG | jq -R . | jq -s .)
|
|
||||||
|
# 🔑 Boş satırları filtrele
|
||||||
|
MESSAGE=$(git tag -l --format="%(contents)" $TAG | grep -v '^$' | jq -R . | jq -s .)
|
||||||
|
|
||||||
if [ "$FIRST" = true ]; then
|
if [ "$FIRST" = true ]; then
|
||||||
FIRST=false
|
FIRST=false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue