diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..fc78ccd --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Github repository +REPO="rust-lang/rust" + +# 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 69d4176..023f4e6 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: rustc description: The rust programming language compiler -version: 1.88.0 +version: 1.89.0 url: https://www.rust-lang.org/ license: Apache-2.0 or MIT architecture: any