Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user