5
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-11-10 23:16:56 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Andrei Neculau
6605732fb4
Merge 0776c3a4db into 71cf2267d8 2025-11-03 16:27:58 -07:00
eric sciple
71cf2267d8
v6-beta (#2298) 2025-11-03 13:40:10 -06:00
Andrei Neculau
0776c3a4db
fetch tags when fetch-depth > 0. fix #1781 2025-01-14 19:48:35 +01:00
2 changed files with 15 additions and 4 deletions

View file

@ -1,6 +1,13 @@
[![Build and Test](https://github.com/actions/checkout/actions/workflows/test.yml/badge.svg)](https://github.com/actions/checkout/actions/workflows/test.yml) [![Build and Test](https://github.com/actions/checkout/actions/workflows/test.yml/badge.svg)](https://github.com/actions/checkout/actions/workflows/test.yml)
# Checkout V5 # Checkout v6-beta
## What's new
- Updated `persist-credentials` to store the credentials under `$RUNNER_TEMP` instead of directly in the local git config.
- This requires a minimum Actions Runner version of [v2.329.0](https://github.com/actions/runner/releases/tag/v2.329.0) to access the persisted credentials for [Docker container action](https://docs.github.com/en/actions/tutorials/use-containerized-services/create-a-docker-container-action) scenarios.
# Checkout v5
## What's new ## What's new
@ -8,7 +15,7 @@
- This requires a minimum Actions Runner version of [v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) to run. - This requires a minimum Actions Runner version of [v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) to run.
# Checkout V4 # Checkout v4
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it. This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.

View file

@ -285,8 +285,12 @@ class GitCommandManager {
} }
): Promise<void> { ): Promise<void> {
const args = ['-c', 'protocol.version=2', 'fetch'] const args = ['-c', 'protocol.version=2', 'fetch']
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) { if (options.fetchTags) {
args.push('--no-tags') args.push('--tags')
} else {
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
args.push('--no-tags')
}
} }
args.push('--prune', '--no-recurse-submodules') args.push('--prune', '--no-recurse-submodules')