Update check-version.sh script

This commit is contained in:
2025-10-18 19:17:58 +03:00
parent 5ec4f52e4f
commit c531970b74
+1 -1
View File
@@ -4,6 +4,6 @@
REPO="sphinx-doc/sphinxcontrib-jsmath"
# 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 '.[0].name')
echo "$TAG_NAME"