Files
nuchat/check-for-tag.sh
Fergus Molloy 6ddd003b3b
Some checks failed
Backend Actions / check (push) Successful in 12s
Backend Actions / build (push) Successful in 17s
Backend Actions / package (push) Failing after 15s
Backend Actions / test (push) Successful in 29s
check for tag before releasing
2025-07-25 15:05:12 +01:00

10 lines
239 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_ENV"
else
echo "No release tag found"
fi