check for tag before releasing
This commit is contained in:
9
check-for-tag.sh
Executable file
9
check-for-tag.sh
Executable 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
|
||||
Reference in New Issue
Block a user