Skip to content

Commit

Permalink
chore(sync): get only tags with specific format (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi authored and github-actions[bot] committed Jan 15, 2025
1 parent c5595ae commit 5f6a902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/get-version-tags.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

current_tag=$(git tag --list --merged origin/release --sort=-creatordate | head -n 1)
main_tag=$(git tag --list --merged origin/main --sort=-creatordate | head -n 1)
current_tag=$(git tag --list 'v[0-9].[0-9]*.[0-9]*' --merged origin/release --sort=-creatordate | head -n 1)
main_tag=$(git tag --list 'v[0-9].[0-9]*.[0-9]*' --merged origin/main --sort=-creatordate | head -n 1)

# Remove the prefix `v` and `-kong-*` suffix for comparison
released_tag="${current_tag%-kong-*}"
Expand Down

0 comments on commit 5f6a902

Please sign in to comment.