mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 09:49:07 +08:00
Merge pull request #1678 from actions/bethanyj28/logging
Add info level logging for zip extract
This commit is contained in:
commit
55c7a1e03d
@ -1,5 +1,9 @@
|
|||||||
# @actions/artifact Releases
|
# @actions/artifact Releases
|
||||||
|
|
||||||
|
### 2.1.4
|
||||||
|
|
||||||
|
- Adds info-level logging for zip extraction
|
||||||
|
|
||||||
### 2.1.3
|
### 2.1.3
|
||||||
|
|
||||||
- Fixes a bug in the extract logic updated in 2.1.2
|
- Fixes a bug in the extract logic updated in 2.1.2
|
||||||
|
4
packages/artifact/package-lock.json
generated
4
packages/artifact/package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/artifact",
|
"name": "@actions/artifact",
|
||||||
"version": "2.1.3",
|
"version": "2.1.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@actions/artifact",
|
"name": "@actions/artifact",
|
||||||
"version": "2.1.3",
|
"version": "2.1.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/artifact",
|
"name": "@actions/artifact",
|
||||||
"version": "2.1.3",
|
"version": "2.1.4",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"description": "Actions artifact lib",
|
"description": "Actions artifact lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -112,7 +112,6 @@ export async function streamExtractExternal(
|
|||||||
reject(new Error(`Malformed extraction path: ${fullPath}`))
|
reject(new Error(`Malformed extraction path: ${fullPath}`))
|
||||||
}
|
}
|
||||||
|
|
||||||
core.debug(`Extracting artifact entry: ${fullPath}`)
|
|
||||||
if (entry.type === 'Directory') {
|
if (entry.type === 'Directory') {
|
||||||
if (!createdDirectories.has(fullPath)) {
|
if (!createdDirectories.has(fullPath)) {
|
||||||
createdDirectories.add(fullPath)
|
createdDirectories.add(fullPath)
|
||||||
@ -125,6 +124,7 @@ export async function streamExtractExternal(
|
|||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
core.info(`Extracting artifact entry: ${fullPath}`)
|
||||||
if (!createdDirectories.has(path.dirname(fullPath))) {
|
if (!createdDirectories.has(path.dirname(fullPath))) {
|
||||||
createdDirectories.add(path.dirname(fullPath))
|
createdDirectories.add(path.dirname(fullPath))
|
||||||
await resolveOrCreateDirectory(path.dirname(fullPath))
|
await resolveOrCreateDirectory(path.dirname(fullPath))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user