forked from docs/doc-exports
other fetch method
This commit is contained in:
@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user