-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
63 lines (49 loc) · 1.85 KB
/
Copy pathaction.yml
File metadata and controls
63 lines (49 loc) · 1.85 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: 'Image Checker'
description: 'Analyzes images files in a repository and validates their size and dimensions.'
author: 'kitconcept GmbH'
branding:
icon: 'image'
color: 'red'
inputs:
file-extensions:
description: 'Comma-separated list of image file extensions.'
required: false
default: 'png,jpg,jpeg,gif,webp,avif,tiff,svg'
paths:
description: 'Comma-separated list of paths to scan for images.'
required: true
min-size:
description: 'Minimum allowed file size in bytes. Files smaller than this value will be flagged.'
required: false
max-size:
description: 'Maximum allowed file size in bytes. Files larger than this value will be flagged.'
required: false
min-width:
description: 'Minimum allowed image width in pixels. Images narrower than this value will be flagged.'
required: false
max-width:
description: 'Maximum allowed image width in pixels. Images wider than this value will be flagged.'
required: false
min-height:
description: 'Minimum allowed image height in pixels. Images shorter than this value will be flagged.'
required: false
max-height:
description: 'Maximum allowed image height in pixels. Images taller than this value will be flagged.'
required: false
fail-on-error:
description: 'If true (default), the action fails when any constraint is violated. Set to false to report violations as warnings without failing the workflow.'
required: false
default: 'true'
summary-title:
description: 'Title to use for the GitHub Step Summary section. Defaults to "Image Checker".'
required: false
default: ''
outputs:
failed-files:
description: 'Comma-separated list of files that failed one or more checks.'
failed-count:
description: 'Number of files that failed one or more checks.'
runs:
using: 'node24'
main: 'dist/index.js'