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