From f1d6f48ced046cc231f134bf7bcd784f8458e3b2 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 7 Sep 2025 17:41:18 +0300 Subject: [PATCH] Update package version to 2.7.1 --- check-version.sh | 15 +++++++++++++++ pkg.info | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..7538b35 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Github repository +REPO="libexpat/libexpat" + +# 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') + +# Trim 'R_' prefix +VERSION=${TAG_NAME//R_/} + +# Replace '_' with '.' +VERSION=${VERSION//_/.} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 05d08eb..01f3d39 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: expat description: XML parsing library -version: 2.6.4 +version: 2.7.1 url: https://libexpat.github.io/ license: MIT architecture: any