Updated path detection logic

This commit is contained in:
Dmytro Struk
2026-02-20 15:29:52 -08:00
Unverified
parent e63f40b756
commit 30c3abdbf0
3 changed files with 41 additions and 13 deletions
+3 -7
View File
@@ -33,18 +33,14 @@ jobs:
contents: read
pull-requests: read
outputs:
pythonChanges: ${{ steps.filter.outputs.python}}
pythonChanges: ${{ inputs.checkout-ref != '' && 'true' || steps.filter.outputs.python }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.checkout-ref }}
- name: Fetch base branch for comparison
if: ${{ inputs.checkout-ref != '' }}
run: git fetch origin main --depth=1
if: ${{ inputs.checkout-ref == '' }}
- uses: dorny/paths-filter@v3
if: ${{ inputs.checkout-ref == '' }}
id: filter
with:
base: ${{ inputs.checkout-ref != '' && 'main' || '' }}
filters: |
python:
- 'python/**'