Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 600
steps:
- name: Compute PR fetch depth
id: pr-fetch-depth
env:
PR_COMMITS: ${{ github.event.pull_request.commits }}
run: echo "depth=$((PR_COMMITS + 2))" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v6
with:
# Fetch the whole PR commit range (plus the merge commit) so that
# BUILD_ALL_VERSION / BUILD_VERSIONS directives in any PR commit are
# honored. Change detection diffs HEAD^1..HEAD (the merge ref's base
# parent), which only needs depth 2, but the directive scan walks the
# full range.
fetch-depth: ${{ github.event.pull_request.commits + 2 }}
fetch-depth: ${{ steps.pr-fetch-depth.outputs.depth }}
- uses: actions/checkout@v6
with:
ref: 'asf-site-next'
Expand Down