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