Skip to content

Commit e120604

Browse files
authored
fix(infra): exclude pre-releases from previous version testing (#32447)
1 parent 06d8754 commit e120604

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,12 @@ jobs:
388388
- name: Test against ${{ matrix.partner }}
389389
if: startsWith(inputs.working-directory, 'libs/core')
390390
run: |
391-
# Identify latest tag
391+
# Identify latest tag, excluding pre-releases
392392
LATEST_PACKAGE_TAG="$(
393393
git ls-remote --tags origin "langchain-${{ matrix.partner }}*" \
394394
| awk '{print $2}' \
395395
| sed 's|refs/tags/||' \
396+
| grep -Ev '==[^=]*(\.?dev[0-9]*|\.?rc[0-9]*)$' \
396397
| sort -Vr \
397398
| head -n 1
398399
)"

0 commit comments

Comments
 (0)