fix(infra): exclude pre-releases from previous version testing (#32447)

This commit is contained in:
ccurme 2025-08-07 11:18:59 -03:00 committed by GitHub
parent 06d8754b0b
commit e120604774
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -388,11 +388,12 @@ jobs:
- name: Test against ${{ matrix.partner }}
if: startsWith(inputs.working-directory, 'libs/core')
run: |
# Identify latest tag
# Identify latest tag, excluding pre-releases
LATEST_PACKAGE_TAG="$(
git ls-remote --tags origin "langchain-${{ matrix.partner }}*" \
| awk '{print $2}' \
| sed 's|refs/tags/||' \
| grep -Ev '==[^=]*(\.?dev[0-9]*|\.?rc[0-9]*)$' \
| sort -Vr \
| head -n 1
)"