Skip to content

feat!: flip PlatformSettings.agenthub_config default to None #234

feat!: flip PlatformSettings.agenthub_config default to None

feat!: flip PlatformSettings.agenthub_config default to None #234

name: Validate Version and Changelog
on:
pull_request:
branches:
- main
jobs:
validate-uipath-llm-client:
name: uipath-llm-client
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: |
core_changes=$(grep -E '^src/uipath/llm_client/' changes.txt | grep -v '__version__.py' || true)
core_version=$(grep -E '^src/uipath/llm_client/__version__.py' changes.txt || true)
if [ -n "$core_changes" ] && [ -z "$core_version" ]; then
echo "::error::uipath-llm-client: package changes detected but no version update in src/uipath/llm_client/__version__.py"
exit 1
fi
echo "✓ Version is consistent with changes."
- name: Validate changelog update
run: |
core_version=$(grep -E '^src/uipath/llm_client/__version__.py' changes.txt || true)
core_changelog=$(grep -E '^CHANGELOG.md' changes.txt || true)
if [ -n "$core_version" ] && [ -z "$core_changelog" ]; then
echo "::error::uipath-llm-client: version changed but no changelog update in CHANGELOG.md"
exit 1
fi
echo "✓ Changelog is consistent with version changes."
validate-uipath-langchain-client:
name: uipath-langchain-client
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: |
langchain_changes=$(grep -E '^packages/uipath_langchain_client/' changes.txt | grep -v '__version__.py' || true)
langchain_version=$(grep -E '^packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py' changes.txt || true)
if [ -n "$langchain_changes" ] && [ -z "$langchain_version" ]; then
echo "::error::uipath-langchain-client: package changes detected but no version update in packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py"
exit 1
fi
echo "✓ Version is consistent with changes."
- name: Validate changelog update
run: |
langchain_version=$(grep -E '^packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py' changes.txt || true)
langchain_changelog=$(grep -E '^packages/uipath_langchain_client/CHANGELOG.md' changes.txt || true)
if [ -n "$langchain_version" ] && [ -z "$langchain_changelog" ]; then
echo "::error::uipath-langchain-client: version changed but no changelog update in packages/uipath_langchain_client/CHANGELOG.md"
exit 1
fi
echo "✓ Changelog is consistent with version changes."