Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoKnebel committed Aug 31, 2024
1 parent 526850a commit 90409c7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ outputs:
description: 'File metadata in JSON format'
file_info:
description: 'File metadata in text format'
file_size:
description: 'Total file size'
file_count:
description: 'Total file count'

runs:
using: 'node20'
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27532,6 +27532,9 @@ module.exports = {
core.info(`Total files: ${colors.bold(output.length)}`);
core.info(`Total size (bytes): ${colors.bold(totalSize)}`);
core.info(`Total size (jedec): ${colors.bold(totalSizeJedec)}`);

core.setOutput('file_count', output.length);
core.setOutput('file_size', totalSizeJedec);
}
}

Expand Down
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "file-analytics",
"version": "0.1.0",
"version": "0.1.1",
"description": "An action to get file size and date from a blob of files",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/outputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ module.exports = {
core.info(`Total files: ${colors.bold(output.length)}`);
core.info(`Total size (bytes): ${colors.bold(totalSize)}`);
core.info(`Total size (jedec): ${colors.bold(totalSizeJedec)}`);

core.setOutput('file_count', output.length);
core.setOutput('file_size', totalSizeJedec);
}
}

0 comments on commit 90409c7

Please sign in to comment.