forked from preactjs/compressed-size-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (44 loc) · 1.61 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
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'
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 .)'
runs:
using: 'node12'
main: 'index.js'