-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
49 lines (47 loc) · 1.61 KB
/
Copy pathaction.yml
File metadata and controls
49 lines (47 loc) · 1.61 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
name: screenproof
description: Lint App Store screenshots and app previews against Apple's dimensions, format, codec, duration, file-size, and count rules.
author: TheChosenVictor LLC
branding:
icon: image
color: green
inputs:
path:
description: Path to the screenshots and app-previews folder to lint.
required: false
default: fastlane/screenshots
strict:
description: Fail on warnings as well as errors.
required: false
default: "false"
config:
description: Path to a screenproof.json config file (optional).
required: false
default: ""
metadata:
description: Path to a deliver metadata folder for the locale cross-check (optional).
required: false
default: ""
flat:
description: Treat the path as a flat folder of images.
required: false
default: "false"
runs:
using: composite
steps:
- uses: actions/setup-node@v6
with:
node-version: "24"
- shell: bash
env:
SCREENPROOF_PATH: ${{ inputs.path }}
SCREENPROOF_STRICT: ${{ inputs.strict }}
SCREENPROOF_CONFIG: ${{ inputs.config }}
SCREENPROOF_METADATA: ${{ inputs.metadata }}
SCREENPROOF_FLAT: ${{ inputs.flat }}
run: |
args=("$SCREENPROOF_PATH")
if [ "$SCREENPROOF_STRICT" = "true" ]; then args+=("--strict"); fi
if [ -n "$SCREENPROOF_CONFIG" ]; then args+=("--config" "$SCREENPROOF_CONFIG"); fi
if [ -n "$SCREENPROOF_METADATA" ]; then args+=("--metadata" "$SCREENPROOF_METADATA"); fi
if [ "$SCREENPROOF_FLAT" = "true" ]; then args+=("--flat"); fi
node "$GITHUB_ACTION_PATH/src/cli.ts" "${args[@]}"