mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Updated path detection logic
This commit is contained in:
@@ -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/**'
|
||||
|
||||
Reference in New Issue
Block a user