Compare commits

..

6 Commits

Author SHA1 Message Date
bab023d7a2 . 2023-09-05 14:37:26 +00:00
691545e3dc . 2023-09-05 14:34:17 +00:00
276befb35c . 2023-09-05 14:33:16 +00:00
e1b7fe15cf . 2023-09-05 14:30:54 +00:00
64ffef1ea6 . 2023-09-05 14:24:23 +00:00
72f2cec99f Update README.md for V4 (#1452)
* Update README.md for V4

* Update actionReference in generate-docs.ts for v4
2023-09-05 09:21:52 -04:00
3 changed files with 5 additions and 2 deletions

View File

@ -12,8 +12,9 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
# What's new
- Updated to the node20 runtime by default
- This requires a minimum [Actions Runner](https://github.com/actions/runner/releases/tag/v2.285.0) version of v2.308.0 to run, which is by default available in GHES 3.11 or later.
- Updated default runtime to node20
- This requires a minimum Actions Runner version of [v2.308.0](https://github.com/actions/runner/releases/tag/v2.308.0).
- Added support for fetching without the `--progress` option
# Usage

1
dist/index.js vendored
View File

@ -1260,6 +1260,7 @@ function getSource(settings) {
else {
fetchOptions.fetchDepth = settings.fetchDepth;
fetchOptions.fetchTags = settings.fetchTags;
fetchOptions.showProgress = settings.showProgress;
const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
yield git.fetch(refSpec, fetchOptions);
}

View File

@ -177,6 +177,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
} else {
fetchOptions.fetchDepth = settings.fetchDepth
fetchOptions.fetchTags = settings.fetchTags
fetchOptions.showProgress = settings.showProgress
const refSpec = refHelper.getRefSpec(settings.ref, settings.commit)
await git.fetch(refSpec, fetchOptions)
}