Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/validate-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Validate Version

on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
validate-uipath-langchain:
name: uipath-langchain
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Get changed files
run: |
git diff origin/main...HEAD --name-only > changes.txt
echo "Changed files:"
cat changes.txt

- name: Validate version update
run: |
src_changes=$(grep -E '^src/uipath_langchain/' changes.txt || true)
version_change=$(grep -E '^pyproject.toml' changes.txt || true)
if [ -n "$src_changes" ] && [ -z "$version_change" ]; then
echo "::error::uipath-langchain: package changes detected in src/uipath_langchain/ but no version update in pyproject.toml"
exit 1
fi
echo "✓ Version is consistent with changes."