Skip to content

Commit

Permalink
Allow dash-something in the tag string so we can do rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBriza committed Jul 2, 2020
1 parent 309cd87 commit c374d74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/get-tag-name.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

PROBABLY_TAG=${GITHUB_REF/refs\/tags\//}
REGEXP="[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*"

grep "^[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*$" <<< "$PROBABLY_TAG"
grep "$REGEXP" <<< "$PROBABLY_TAG" | sed "s/.*\($REGEXP\).*/\\1/"

exit 0

0 comments on commit c374d74

Please sign in to comment.