Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Jan 10, 2023
1 parent 92f2a99 commit e18ea2e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ fi
git fetch origin +refs/tags/*:refs/tags/*

NEW_TAG=${4:-"${GITHUB_REF/refs\/tags\//}"}
MAJOR_VERSION=$(echo "$NEW_TAG" | cut -d. -f1)


CURRENT_TAG=${3:-$(git tag -l --sort=-version:refname "$MAJOR_VERSION.*" | grep -v "$NEW_TAG" | head -1 || true)}

CURRENT_TAG=${3:-$(git tag -l --sort=-version:refname "*.*" | grep -v "$NEW_TAG" | head -1 || true)}

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

0 comments on commit e18ea2e

Please sign in to comment.