other fetch method

This commit is contained in:
2026-01-25 23:18:14 +00:00
parent 1dbca2859f
commit c16ee3153f

View File

@ -17,7 +17,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
fetch-depth: 0
# fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
- name: Get changed files other method
run: |
git fetch origin $GITEA_BASE_REF
git diff --name-only origin/$GITEA_BASE_REF...HEAD
- name: Get changed files
id: changed-files
run: |