diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..c2c3d51 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Github repository +REPO="Mic92/iana-etc" + +# Get tag name using Github Rest API +VERSION=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 8ef8f8b..e8c2c7f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: iana-etc description: /etc/protocols and /etc/services provided by IANA -version: 20240502 -revision: 2 +version: 20250807 url: https://www.iana.org/protocols architecture: any make_depends: ["coreutils"]