mirror of
http://gitea.com/actions/checkout
synced 2024-11-30 21:22:26 +08:00
Compare commits
No commits in common. "a5ac7e51b41094c92402da3b24376905380afc29" and "44c2b7a8a4ea60a981eaca3cf939b5f4305c123b" have entirely different histories.
a5ac7e51b4
...
44c2b7a8a4
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,15 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## v4.1.6
|
||||
* Check platform to set archive extension appropriately by @cory-miller in https://github.com/actions/checkout/pull/1732
|
||||
|
||||
## v4.1.5
|
||||
* Update NPM dependencies by @cory-miller in https://github.com/actions/checkout/pull/1703
|
||||
* Bump github/codeql-action from 2 to 3 by @dependabot in https://github.com/actions/checkout/pull/1694
|
||||
* Bump actions/setup-node from 1 to 4 by @dependabot in https://github.com/actions/checkout/pull/1696
|
||||
* Bump actions/upload-artifact from 2 to 4 by @dependabot in https://github.com/actions/checkout/pull/1695
|
||||
* README: Suggest `user.email` to be `41898282+github-actions[bot]@users.noreply.github.com` by @cory-miller in https://github.com/actions/checkout/pull/1707
|
||||
|
||||
## v4.1.4
|
||||
- Disable `extensions.worktreeConfig` when disabling `sparse-checkout` by @jww3 in https://github.com/actions/checkout/pull/1692
|
||||
- Add dependabot config by @cory-miller in https://github.com/actions/checkout/pull/1688
|
||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -1574,9 +1574,7 @@ function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath,
|
||||
// Write archive to disk
|
||||
core.info('Writing archive to disk');
|
||||
const uniqueId = (0, uuid_1.v4)();
|
||||
const archivePath = IS_WINDOWS
|
||||
? path.join(repositoryPath, `${uniqueId}.zip`)
|
||||
: path.join(repositoryPath, `${uniqueId}.tar.gz`);
|
||||
const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
|
||||
yield fs.promises.writeFile(archivePath, archiveData);
|
||||
archiveData = Buffer.from(''); // Free memory
|
||||
// Extract archive
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "checkout",
|
||||
"version": "4.1.6",
|
||||
"version": "4.1.4",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "checkout",
|
||||
"version": "4.1.6",
|
||||
"version": "4.1.4",
|
||||
"description": "checkout action",
|
||||
"main": "lib/main.js",
|
||||
"scripts": {
|
||||
|
@ -35,9 +35,7 @@ export async function downloadRepository(
|
||||
// Write archive to disk
|
||||
core.info('Writing archive to disk')
|
||||
const uniqueId = uuid()
|
||||
const archivePath = IS_WINDOWS
|
||||
? path.join(repositoryPath, `${uniqueId}.zip`)
|
||||
: path.join(repositoryPath, `${uniqueId}.tar.gz`)
|
||||
const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`)
|
||||
await fs.promises.writeFile(archivePath, archiveData)
|
||||
archiveData = Buffer.from('') // Free memory
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user