-
Notifications
You must be signed in to change notification settings - Fork 84
/
action.yml
50 lines (49 loc) · 1.89 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'compressed-size-action'
description: 'Get compressed size differences for every PR'
author: 'Jason Miller'
branding:
icon: 'archive'
color: 'purple'
inputs:
repo-token:
description: 'The GITHUB_TOKEN secret'
required: false
default: ${{ github.token }}
clean-script:
description: 'An npm-script that cleans/resets state between branch builds'
install-script:
required: false
description: 'Custom installation script to run to set up the dependencies in your project'
build-script:
description: 'The npm-script to run that builds your project'
default: 'build'
compression:
description: 'The compression algorithm to use: "gzip" or "brotli"'
show-total:
description: 'Show total size and difference.'
default: 'true'
collapse-unchanged:
description: 'Move unchanged files into a separate collapsed table'
default: 'true'
omit-unchanged:
description: 'Exclude unchanged files from the sizes table entirely'
strip-hash:
description: 'A regular expression to remove hashes from filenames. Submatches are turned into asterisks if present, otherwise the whole match is removed.'
use-check:
description: 'Report status as a CI Check instead of using a comment [experimental]'
minimum-change-threshold:
description: 'Consider files with changes below this threshold as unchanged. Specified in bytes.'
default: 1
pattern:
description: 'minimatch pattern of files to track'
default: '**/dist/**/*.js'
exclude:
description: 'minimatch pattern of files NOT to track'
default: '{**/*.map,**/node_modules/**}'
cwd:
description: 'A custom working directory to execute the action in relative to repo root (defaults to .)'
comment-key:
description: 'Optional key to include in the bot comment to allow for multiple bundle calculations to be posted in separate comments.'
runs:
using: 'node20'
main: 'index.js'