check for tag before releasing
All checks were successful
Backend Actions / check (push) Successful in 16s
Backend Actions / build (push) Successful in 18s
Backend Actions / package (push) Successful in 11s
Backend Actions / test (push) Successful in 29s

This commit is contained in:
2025-07-25 15:01:16 +01:00
parent 86d5e8f66a
commit 083c43bac2
3 changed files with 28 additions and 11 deletions

9
check-for-tag.sh Executable file
View File

@ -0,0 +1,9 @@
#!/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