diff --git a/.github/workflows/ubuntu-dep-src.yml b/.github/workflows/ubuntu-dep-src.yml index b8c39efb7a..bb85440ec9 100644 --- a/.github/workflows/ubuntu-dep-src.yml +++ b/.github/workflows/ubuntu-dep-src.yml @@ -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: