Skip to content

Commit

Permalink
[CI] The function is improved to reject tags containing pr as in Pre …
Browse files Browse the repository at this point in the history
…Release
  • Loading branch information
LAGNEAU Romain committed Jul 3, 2024
1 parent f9c7927 commit 1a57d2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu-dep-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ concurrency:
cancel-in-progress: true

env:
FUNCTION_GET_LATEST: 'git -c "versionsort.suffix=-" ls-remote --exit-code --refs --sort="version:refname" --tags ${GIT_ADDRESS} "*.*.*" | tail --lines=1 | cut --delimiter="/" --fields=3'
# Function to get the most recent tag of a remote repository without having to clone it, excluding tag with 'pr' as in Pre Release
FUNCTION_GET_LATEST: 'git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${GIT_ADDRESS} '*.*.*' | cut --delimiter='/' --fields=3 | grep -v -e pr | tail --lines=1'

jobs:
build-ubuntu-dep-src:
Expand Down

0 comments on commit 1a57d2c

Please sign in to comment.