Skip to content

Commit

Permalink
Fix entrypoint to retrieve tags (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
micnncim authored Sep 18, 2020
1 parent 2ddc5e7 commit 12e889e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ "${INPUT_SEMVER_ONLY}" = 'false' ]; then
else
# Get a latest tag in the shape of semver.
for ref in $(git for-each-ref --sort=-creatordate --format '%(refname)' refs/tags); do
readonly tag="${ref#refs/tags/}"
tag="${ref#refs/tags/}"
if echo "${tag}" | grep -Eq '^v?([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$'; then
latest_tag="${tag}"
break
Expand Down

0 comments on commit 12e889e

Please sign in to comment.