feat: make show-progress control checkout verbosity, not just fetch

Previously checkout/checkoutDetach always ran with --progress
regardless of the show-progress input, and settings.showProgress
was never propagated into fetchOptions. Thread showProgress through
checkout and checkoutDetach so they use --quiet when show-progress
is false, giving a genuinely quiet checkout when show-progress: false
is set.

Ported from schlags/checkout (show-progress-required branch) onto
current actions/checkout main.
This commit is contained in:
Andrew Mehta 2026-09-24 16:08:29 -06:00
parent f548e57e54
commit 2f547d07f2
7 changed files with 33 additions and 17 deletions

View file

@ -78,7 +78,7 @@ inputs:
description: 'Whether to fetch tags, even if fetch-depth > 0.'
default: false
show-progress:
description: 'Whether to show progress status output when fetching.'
description: 'Whether to show progress status output for git operations.'
default: true
lfs:
description: 'Whether to download Git-LFS files'