https://github.com/alexrogalskiy/github-action-file-size
🗃️ GitHub action for file size reporting
https://github.com/alexrogalskiy/github-action-file-size
file-size github-actions
Last synced: about 1 month ago
JSON representation
🗃️ GitHub action for file size reporting
- Host: GitHub
- URL: https://github.com/alexrogalskiy/github-action-file-size
- Owner: AlexRogalskiy
- License: gpl-3.0
- Created: 2021-04-13T12:28:36.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T00:16:58.000Z (about 2 months ago)
- Last Synced: 2025-04-11T01:24:37.829Z (about 2 months ago)
- Topics: file-size, github-actions
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/file-size
- Size: 1.09 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 160
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
- Support: .github/support.yml
Awesome Lists containing this project
README
# *File Size*
> GitHub Action to provide file size reports
[](https://github.com/marketplace/actions/file-size)
[](https://github.com/lekterable/perfekt)
[](https://github.com/prettier/prettier)

[](https://houndci.com)
[](https://github.com/AlexRogalskiy/github-action-file-size/discussions)[](https://deepsource.io/gh/AlexRogalskiy/github-action-file-size/?ref=repository-badge)
[](https://deepscan.io/dashboard#view=project\&tid=11946\&pid=16314\&bid=347248)










[](https://renovatebot.com/)
[](https://dependabot.com/)
[](https://newreleases.io/github/AlexRogalskiy/github-action-file-size)
[](https://hitsofcode.com/github/alexrogalskiy/github-action-file-size?branch=master/view?branch=master)
[](https://david-dm.org/AlexRogalskiy/github-action-file-size)
[](https://david-dm.org/AlexRogalskiy/github-action-file-size?type=dev)[](https://app.codeac.io/github/AlexRogalskiy/github-action-file-size)
[](https://coveralls.io/github/AlexRogalskiy/github-action-file-size?branch=master)
[](https://codebeat.co/projects/github-com-alexrogalskiy-github-action-file-size-master)
[](https://lgtm.com/projects/g/AlexRogalskiy/github-action-file-size/alerts/)
[](https://lgtm.com/projects/g/AlexRogalskiy/github-action-file-size/context:javascript)
[](https://codecov.io/gh/AlexRogalskiy/github-action-file-size)
[](https://github.com/AlexRogalskiy/github-action-file-size/actions/workflows/build.yml)
[](https://circleci.com/gh/AlexRogalskiy/github-action-file-size)
[](https://github.com/marketplace/actions/super-linter)
[](http://commitizen.github.io/cz-cli/)
[][repo]
[![Public workflows that use this action.][total_usages]][search_results]
[![Licence][license_id]][license_content][](https://github.com/AlexRogalskiy/github-action-file-size/discussions)
[](https://github.com/AlexRogalskiy/github-action-file-size/labels/question)
[](https://github.com/AlexRogalskiy/github-action-file-size/labels/bug)## *Table of contents*
- [*Description*](#description)
- [*Inputs*](#inputs)
- [`sourceData`](#sourcedata)
- [`reportName`](#reportname)
- [`sourceFilePath`](#sourcefilepath)
- [`targetFilePath`](#targetfilepath)
- [`sizeUnit`](#sizeunit)
- [*Outputs*](#outputs)
- [`fileReport`](#filereport)
- [*Examples*](#examples)
- [*Visitor stats*](#visitor-stats)
- [*Licensing*](#licensing)
- [*Authors*](#authors)
- [*Versioning*](#versioning)
- [*Contribution*](#contribution)
- [*Acknowledgement*](#acknowledgement)
- [*Forks*](#forks)
- [*Development Support*](#development-support)## *Description*
Provides comparison report on files size by input parameters.
## *Inputs*
### `sourceData`
**Optional** JSON data source file with action parameters:
#### Complete parameters
```json
[
{
"reportName": "african proverbs report",
"sourceFilePath": "./data/african_proverbs.json",
"targetFilePath": "./data/african_proverbs_unique.json"
},
{
"reportName": "gypsy proverbs report",
"sourceFilePath": "./data/gypsy_proverbs.json",
"targetFilePath": "./data/gypsy_proverbs_unique.json"
}
]
```#### Basic parameters
```json
[
{
"reportName": "african proverbs report",
"sourceFilePath": "./data/african_proverbs.json",
"targetFilePath": "./data/african_proverbs_unique.json",
"sizeUnit": "kb"
},
{
"reportName": "gypsy proverbs report",
"sourceFilePath": "./data/gypsy_proverbs.json",
"targetFilePath": "./data/gypsy_proverbs_unique.json",
"sizeUnit": "b"
}
]
```### `reportName`
**Optional** Report name
### `sourceFilePath`
**Optional** Source file path
### `targetFilePath`
**Optional** Target file path
### `sizeUnit`
**Optional** File size units (any of b|kb|mb|gb|tb|pb)
## *Outputs*
### `fileReport`
JSON representation of files size report
## *Examples*
```yml
- name: File size
uses: alexrogalskiy/github-action-file-size@master
with:
reportName: 'Proverbs File Diff'
sourceFilePath: './data/african_proverbs.json'
targetFilePath: './data/african_proverbs_unique.json'
sizeUnit: 'kb'
```Running locally:
- `npm run start:action --action github-action-file-size --reportName 'Proverbs File Diff' --sourceFilePath './data/african_proverbs.json' --targetFilePath './data/african_proverbs_unique.json' --sizeUnit 'kb'`
## *Visitor stats*
[](https://hits.seeyoufarm.com)


## *Licensing*
***File Size*** is distributed under LGPL version 3 or later,
\[[License](https://github.com/AlexRogalskiy/github-action-file-size/blob/master/LICENSE)]. LGPLv3 is additional
permissions on top of GPLv3.
## *Authors*
***File Size*** is maintained by the following GitHub team-members:
- [](https://github.com/AlexRogalskiy)
with community support please contact with us if you have some question or proposition.
## *Versioning*
The project uses [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on
this repository][tags].## *Contribution*
[](https://badges.pufler.dev)
Please read
[CONTRIBUTING.md](https://github.com/AlexRogalskiy/github-action-file-size/blob/master/.github/CONTRIBUTING.md)
for details on our code of conduct, and the process for submitting pull requests to us
([emoji key](https://allcontributors.org/docs/en/emoji-key)).This project follows the [all-contributors](https://github.com/all-contributors/all-contributors)
specification. Contributions of any kind are welcome](http://makeapullrequest.com)
See also the list of [contributors][contributors] who participated in this project.
## *Acknowledgement*
[][stars]
## *Forks*
[][forkers]
## *Development Support*
Like ***File Size*** ? Consider buying me a coffee :)
[](https://www.patreon.com/alexrogalskiy)
[](https://www.buymeacoffee.com/AlexRogalskiy)
[](https://ko-fi.com/alexrogalskiy)***
[](https://www.typescriptlang.org/)
[](https://github.com/)
[](https://forthebadge.com/)[repo]: https://github.com/AlexRogalskiy/github-action-file-size
[tags]: https://github.com/AlexRogalskiy/github-action-file-size/tags
[issues]: https://github.com/AlexRogalskiy/github-action-file-size/issues
[pulls]: https://github.com/AlexRogalskiy/github-action-file-size/pulls
[wiki]: https://github.com/AlexRogalskiy/github-action-file-size/wiki
[stars]: https://github.com/AlexRogalskiy/github-action-file-size/stargazers
[forkers]: https://github.com/AlexRogalskiy/github-action-file-size/network/members
[contributors]: https://github.com/AlexRogalskiy/github-action-file-size/graphs/contributors
[license_id]: https://img.shields.io/github/license/AlexRogalskiy/github-action-file-size
[license_content]: https://github.com/AlexRogalskiy/github-action-file-size/blob/master/LICENSE
[total_usages]: https://img.shields.io/endpoint?url=https%3A%2F%2Fapi-git-master.endbug.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3DAlexRogalskiy%2Fgithub-action-file-size%26badge%3Dtrue
[search_results]: https://github.com/search?o=desc&q=AlexRogalskiy/github-action-file-size+path%3A.github%2Fworkflows+language%3AYAML&s=&type=Code