Files
nuchat/check-for-tag.sh
Fergus Molloy 8db8f50086
All checks were successful
Backend Actions / check (push) Successful in 14s
Backend Actions / build (push) Successful in 21s
Backend Actions / package (push) Successful in 14s
Backend Actions / test (push) Successful in 29s
release 0.0.3
2025-07-25 15:17:49 +01:00

10 lines
243 B
Bash
Executable File

#!/usr/bin/env bash
TAGS="$(git tag --points-at HEAD)"
if [ -n "$TAGS" ]; then
TAG=$(echo "$TAGS" | grep -E '^v[0-9]+.[0-9]+.[0-9]+$' | sort -V | tail -1)
echo "release_tag=$TAG" >> "$GITHUB_OUTPUTS"
else
echo "No release tag found"
fi