Files
xmlto/check-version.sh
2025-09-21 20:20:16 +03:00

10 lines
185 B
Bash

#!/bin/bash
# Pagure repository
REPO="xmlto"
# Get tag name using Pagure Rest API
TAG_NAME=$(curl -s -L https://pagure.io/api/0/"$REPO"/git/tags | jq -r '.tags[0]')
echo "$TAG_NAME"