workflows/check-cherry-picks: reduce checkout time

Using a `tree:0` filter instead of `blob:none` reduces the checkout time
from over 3 minutes to about 45 seconds. The required trees/blobs will
then be fetched on-demand.

This on-demand fetching creates additional output for `git range-diff`
on stderr, so we hide that. This only happens the first time it's run,
so we don't need to adjust the other calls - which will still return any
real errors, should they happen.
This commit is contained in:
Wolfgang Walther 2025-05-28 13:12:19 +02:00
parent 245b1c1c48
commit e575364ae6
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
filter: blob:none
filter: tree:0
path: trusted
- name: Check cherry-picks