Skip to content

Commit e18ea2e

Browse files
authored
Update entrypoint.sh
1 parent 92f2a99 commit e18ea2e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

entrypoint.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ fi
1212
git fetch origin +refs/tags/*:refs/tags/*
1313

1414
NEW_TAG=${4:-"${GITHUB_REF/refs\/tags\//}"}
15-
MAJOR_VERSION=$(echo "$NEW_TAG" | cut -d. -f1)
16-
17-
18-
CURRENT_TAG=${3:-$(git tag -l --sort=-version:refname "$MAJOR_VERSION.*" | grep -v "$NEW_TAG" | head -1 || true)}
19-
15+
CURRENT_TAG=${3:-$(git tag -l --sort=-version:refname "*.*" | grep -v "$NEW_TAG" | head -1 || true)}
2016

2117
if [[ -z $CURRENT_TAG ]]; then
2218
echo "::warning::Initial release detected unable to determine any tag diff."

0 commit comments

Comments
 (0)