1
0
Fork 0

Merge pull request #1678 from actions/bethanyj28/logging

Add info level logging for zip extract
pull/1679/head
Bethany 2024-03-01 13:09:41 -05:00 committed by GitHub
commit 55c7a1e03d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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",

View File

@ -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": [

View File

@ -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))