Update package version to 1.2.12

This commit is contained in:
2025-07-17 13:38:08 +03:00
parent f42eed2cf9
commit 47d49fb4a6
2 changed files with 18 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Github repository
REPO="alsa-project/alsa-plugins"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/tags | jq -r '.[0].name')
# Get version number from tag name
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
# Trim 'v' character in VERSION variable
VERSION=$(echo "$VERSION" | tr -d 'v')
echo "$VERSION"