File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ jobs:
2525
2626 CHANGED_FILES=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA")
2727
28- if echo "$CHANGED_FILES" | grep -q "^src/"; then
28+ if echo "$CHANGED_FILES" | grep -qE "^src/.*\.(py|pyi|proto)$ "; then
2929 BASE_VERSION=$(git show "$BASE_SHA:pyproject.toml" | grep "^version = " | cut -d'"' -f2)
3030 HEAD_VERSION=$(git show "$HEAD_SHA:pyproject.toml" | grep "^version = " | cut -d'"' -f2)
3131
3232 if [ "$BASE_VERSION" = "$HEAD_VERSION" ]; then
33- echo "ERROR: Files under src/ were modified but the version in pyproject.toml was not bumped (still $HEAD_VERSION)."
33+ echo "ERROR: Source files under src/ were modified but the version in pyproject.toml was not bumped (still $HEAD_VERSION)."
3434 exit 1
3535 fi
3636
4242
4343 echo "Version bump OK: $BASE_VERSION → $HEAD_VERSION"
4444 else
45- echo "No src/ changes. Version bump not required."
45+ echo "No source file changes under src/ . Version bump not required."
4646 fi
You can’t perform that action at this time.
0 commit comments