Added fetch from main for comparison

This commit is contained in:
Dmytro Struk
2026-02-20 14:36:13 -08:00
Unverified
parent d6ad111e3b
commit e63f40b756
2 changed files with 8 additions and 0 deletions
@@ -48,9 +48,13 @@ jobs:
- 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
- uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ inputs.checkout-ref != '' && 'main' || '' }}
filters: |
dotnet:
- 'dotnet/**'
+4
View File
@@ -38,9 +38,13 @@ jobs:
- 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
- uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ inputs.checkout-ref != '' && 'main' || '' }}
filters: |
python:
- 'python/**'