release(core): 0.3.74 #221
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'π Check `core` Version Equality' | |
# Ensures version numbers in pyproject.toml and version.py stay in sync | |
# Prevents releases with mismatched version numbers | |
on: | |
pull_request: | |
paths: | |
- 'libs/core/pyproject.toml' | |
- 'libs/core/langchain_core/version.py' | |
permissions: | |
contents: read | |
jobs: | |
check_version_equality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'β Verify pyproject.toml & version.py Match' | |
run: | | |
PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/core/pyproject.toml) | |
VERSION_PY_VERSION=$(grep -Po '(?<=^VERSION = ")[^"]*' libs/core/langchain_core/version.py) | |
# Compare the two versions | |
if [ "$PYPROJECT_VERSION" != "$VERSION_PY_VERSION" ]; then | |
echo "langchain-core versions in pyproject.toml and version.py do not match!" | |
echo "pyproject.toml version: $PYPROJECT_VERSION" | |
echo "version.py version: $VERSION_PY_VERSION" | |
exit 1 | |
else | |
echo "Versions match: $PYPROJECT_VERSION" | |
fi |