Skip to content

Commit 90409c7

Browse files
v0.1.1
1 parent 526850a commit 90409c7

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ outputs:
1818
description: 'File metadata in JSON format'
1919
file_info:
2020
description: 'File metadata in text format'
21+
file_size:
22+
description: 'Total file size'
23+
file_count:
24+
description: 'Total file count'
2125

2226
runs:
2327
using: 'node20'

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27532,6 +27532,9 @@ module.exports = {
2753227532
core.info(`Total files: ${colors.bold(output.length)}`);
2753327533
core.info(`Total size (bytes): ${colors.bold(totalSize)}`);
2753427534
core.info(`Total size (jedec): ${colors.bold(totalSizeJedec)}`);
27535+
27536+
core.setOutput('file_count', output.length);
27537+
core.setOutput('file_size', totalSizeJedec);
2753527538
}
2753627539
}
2753727540

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "file-analytics",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "An action to get file size and date from a blob of files",
55
"main": "src/index.js",
66
"scripts": {

src/outputs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ module.exports = {
4141
core.info(`Total files: ${colors.bold(output.length)}`);
4242
core.info(`Total size (bytes): ${colors.bold(totalSize)}`);
4343
core.info(`Total size (jedec): ${colors.bold(totalSizeJedec)}`);
44+
45+
core.setOutput('file_count', output.length);
46+
core.setOutput('file_size', totalSizeJedec);
4447
}
4548
}

0 commit comments

Comments
 (0)