13 lines
263 B
Bash
13 lines
263 B
Bash
#!/bin/bash
|
|
|
|
# Gitea repository
|
|
REPO="libburnia/libburn"
|
|
|
|
# Get version from tag name using Gitea Rest API
|
|
TAG_NAME=$(curl -s -L https://dev.lovelyhq.com/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
|
|
|
# Trim prefix
|
|
VERSION=${TAG_NAME//release-/}
|
|
|
|
echo "$VERSION"
|