From 90409c721462cf2b2151a3cd856b826b5cf23deb Mon Sep 17 00:00:00 2001 From: Francisco Knebel Date: Sat, 31 Aug 2024 17:37:53 -0300 Subject: [PATCH] v0.1.1 --- action.yml | 4 ++++ dist/index.js | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- src/outputs.js | 3 +++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 90a3ddd..1188a46 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/dist/index.js b/dist/index.js index 7dd65c3..04fa84d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); } } diff --git a/package-lock.json b/package-lock.json index 19e2f6d..a82237f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "file-analytics", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "file-analytics", - "version": "0.1.0", + "version": "0.1.1", "dependencies": { "@actions/core": "^1.2.6", "@actions/glob": "^0.5.0", diff --git a/package.json b/package.json index 3b6f438..b7ae51a 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/outputs.js b/src/outputs.js index 59e98f5..f331a79 100644 --- a/src/outputs.js +++ b/src/outputs.js @@ -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); } } \ No newline at end of file