mirror of
https://github.com/actions/checkout.git
synced 2025-11-10 23:16:56 +00:00
Compare commits
3 commits
28772b5273
...
6605732fb4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6605732fb4 | ||
|
|
71cf2267d8 | ||
|
|
0776c3a4db |
2 changed files with 15 additions and 4 deletions
11
README.md
11
README.md
|
|
@ -1,6 +1,13 @@
|
||||||
[](https://github.com/actions/checkout/actions/workflows/test.yml)
|
[](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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -285,9 +285,13 @@ 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('--tags')
|
||||||
|
} else {
|
||||||
|
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
|
||||||
args.push('--no-tags')
|
args.push('--no-tags')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
args.push('--prune', '--no-recurse-submodules')
|
args.push('--prune', '--no-recurse-submodules')
|
||||||
if (options.showProgress) {
|
if (options.showProgress) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue