fix: validate version ci pipeline #1
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: Validate Version | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| 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." |