Update package version to 0.29.2

This commit is contained in:
2025-12-12 19:44:47 +02:00
parent 5b950b4f46
commit 2a376505a6
3 changed files with 21 additions and 12 deletions
+5 -2
View File
@@ -4,6 +4,9 @@
REPO="mozilla/cbindgen"
# 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')
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"/tags | jq -r '.[].name' | grep '^v' | head -n1)
echo "$TAG_NAME"
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"