mirror of https://github.com/statping/statping
fix release detection
parent
a900a95b5a
commit
c9a9d1f119
|
@ -28,7 +28,7 @@ jobs:
|
|||
id: versions
|
||||
run: |
|
||||
TAG=$(git describe --tags)
|
||||
if [ "${{ github.ref }}" = "refs/heads/$TAG" ]; then
|
||||
if [ "${{ github.ref }}" = "refs/tags/$TAG" ]; then
|
||||
echo "is_release=true" >> $GITHUB_OUTPUT
|
||||
if [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]$ ]]; then
|
||||
echo "is_prerelease=false" >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue