Update package version to 0.14

This commit is contained in:
2026-05-08 14:52:09 +03:00
parent edf4b1727c
commit f5e38a7b7a
2 changed files with 15 additions and 8 deletions
+7 -4
View File
@@ -1,10 +1,13 @@
#!/bin/bash
# Github repository
REPO="heftig/rtkit"
# Gitlab repository
REPO="pipewire/rtkit"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Replace slash with URL encoded representation
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API
TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')