Skip to content

Commit 9e5b6a4

Browse files
committed
fix: validate version ci pipeline
1 parent ef7d2e4 commit 9e5b6a4

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Validate Version
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
validate-uipath-langchain:
10+
name: uipath-langchain
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Get changed files
18+
run: |
19+
git diff origin/main...HEAD --name-only > changes.txt
20+
echo "Changed files:"
21+
cat changes.txt
22+
23+
- name: Validate version update
24+
run: |
25+
src_changes=$(grep -E '^src/uipath_langchain/' changes.txt || true)
26+
version_change=$(grep -E '^pyproject.toml' changes.txt || true)
27+
if [ -n "$src_changes" ] && [ -z "$version_change" ]; then
28+
echo "::error::uipath-langchain: package changes detected in src/uipath_langchain/ but no version update in pyproject.toml"
29+
exit 1
30+
fi
31+
echo "✓ Version is consistent with changes."

0 commit comments

Comments
 (0)