Skip to content

Commit

Permalink
Fix: Do not exit when tags not present (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Aug 7, 2024
1 parent d990add commit 7e086d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/semantic-tag-latest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ runs:
# Regular expression to match semantic tag
PATTERN="^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$"
TAG=$(git tag -l --sort=committerdate | grep -o '?*.*.*' | sort -r | head -1)
TAG=$(git tag -l --sort=committerdate | grep -o '?*.*.*' | sort -r | head -1 || true)
# If present, strip the leading "v" character
if [[ "$TAG" == v* ]]; then
Expand Down

0 comments on commit 7e086d3

Please sign in to comment.