File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments