Skip to content

Commit

Permalink
Avoid "budget" concept
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Apr 28, 2024
1 parent af618fb commit b841741
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ If you have multiple meta files, you can specify them like this `"dist/meta1.jso

## Action inputs

| Name | Default | Description |
|-------------------------------|---------------------------------------|------------------------------------------------------------------------------------------------------------------|
| `metafiles` | - | A required comma-separated list of paths to [esbuild's meta file]([https://esbuild.github.io/api/#metafile]). |
| `name` | `${{ github.event.repository.name }}` | The name of your project. This will be used in the comment header. |
| `analyze_directory` | `.analyzer` | A path to working directory where bundle analysis are stored. |
| `budget_percent_increase_red` | `20` | If an out file size has increased more than this percent, display a "‼️" to draw extra attention to the change. |
| `show_details` | `true` | If `true`, a collapsed "details" section is rendered. It explains the details of the numbers provided and icons. |
| Name | Default | Description |
|---------------------------|---------------------------------------|------------------------------------------------------------------------------------------------------------------|
| `metafiles` | - | A required comma-separated list of paths to [esbuild's meta file]([https://esbuild.github.io/api/#metafile]). |
| `name` | ${{ github.event.<br>repository.name }} | The name of your project. This will be used in the comment header. |
| `analyze_directory` | `.analyzer` | A path to working directory where bundle analysis are stored. |
| `percent_extra_attention` | `20` | If an out file size has increased more than this percent, display a "‼️" to draw extra attention to the change. |
| `show_details` | `true` | If `true`, a collapsed "details" section is rendered. It explains the details of the numbers provided and icons. |

## Action outputs

Expand Down
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inputs:
default: ".analyzer"
description: |
A path to working directory where bundle analysis are stored.
budget_percent_increase_red:
percent_extra_attention:
required: false
default: "20"
description: |
Expand Down Expand Up @@ -67,7 +67,7 @@ runs:
INPUT_METAFILES: ${{ inputs.metafiles }}
INPUT_NAME: ${{ inputs.name }}
INPUT_ANALYZE_DIRECTORY: ${{ inputs.analyze_directory }}
INPUT_BUDGET_PERCENT_INCREASE_RED: ${{ inputs.budget_percent_increase_red }}
INPUT_PERCENT_EXTRA_ATTENTION: ${{ inputs.percent_extra_attention }}
INPUT_SHOW_DETAILS: ${{ inputs.show_details }}
run: |
node ${{ github.action_path }}/dist/index.mjs
Expand Down
Loading

0 comments on commit b841741

Please sign in to comment.