diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..2b9dfb3 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="google/shaderc" + +# 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') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 56a8aaa..d7a3340 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: shaderc description: A collection of tools, libraries, and tests for Vulkan shader compilation -version: 2025.1 -revision: 2 +version: 2025.3 url: https://github.com/google/shaderc license: Apache-2.0 architecture: any