Skip to content

Commit

Permalink
Merge pull request #1678 from actions/bethanyj28/logging
Browse files Browse the repository at this point in the history
Add info level logging for zip extract
  • Loading branch information
bethanyj28 authored Mar 1, 2024
2 parents 0c735ba + 4799020 commit 55c7a1e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/artifact/RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @actions/artifact Releases

### 2.1.4

- Adds info-level logging for zip extraction

### 2.1.3

- Fixes a bug in the extract logic updated in 2.1.2
Expand Down
4 changes: 2 additions & 2 deletions packages/artifact/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/artifact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@actions/artifact",
"version": "2.1.3",
"version": "2.1.4",
"preview": true,
"description": "Actions artifact lib",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export async function streamExtractExternal(
reject(new Error(`Malformed extraction path: ${fullPath}`))
}

core.debug(`Extracting artifact entry: ${fullPath}`)
if (entry.type === 'Directory') {
if (!createdDirectories.has(fullPath)) {
createdDirectories.add(fullPath)
Expand All @@ -125,6 +124,7 @@ export async function streamExtractExternal(
callback()
}
} else {
core.info(`Extracting artifact entry: ${fullPath}`)
if (!createdDirectories.has(path.dirname(fullPath))) {
createdDirectories.add(path.dirname(fullPath))
await resolveOrCreateDirectory(path.dirname(fullPath))
Expand Down

0 comments on commit 55c7a1e

Please sign in to comment.