File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,20 @@ jobs:
1616 run : |
1717 if [ "${{ github.event_name }}" == "pull_request" ]; then
1818 # For PRs, compare against base branch
19- CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }} HEAD | grep '\.py$' || echo "")
19+ CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }} HEAD | grep '\.py$' | grep -v "^setup\.py$" || echo "")
20+ # Check if setup.py specifically changed
21+ SETUP_PY_CHANGED=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }} HEAD | grep "^setup\.py$" || echo "")
22+ if [ ! -z "$SETUP_PY_CHANGED" ]; then
23+ CHANGED_FILES="$CHANGED_FILES $SETUP_PY_CHANGED"
24+ fi
2025 else
2126 # For pushes, use the before/after SHAs
22- CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.before }} ${{ github.event.after }} | grep '\.py$' || echo "")
27+ CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.before }} ${{ github.event.after }} | grep '\.py$' | grep -v "^setup\.py$" || echo "")
28+ # Check if setup.py specifically changed
29+ SETUP_PY_CHANGED=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.before }} ${{ github.event.after }} | grep "^setup\.py$" || echo "")
30+ if [ ! -z "$SETUP_PY_CHANGED" ]; then
31+ CHANGED_FILES="$CHANGED_FILES $SETUP_PY_CHANGED"
32+ fi
2333 fi
2434
2535 # Check if any Python files were changed and set the output accordingly
You can’t perform that action at this time.
0 commit comments