You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+22-21Lines changed: 22 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,13 @@ inputs:
17
17
output:
18
18
description: 'Output image file path'
19
19
required: false
20
-
default: screenshot.png
20
+
default: 'screenshot.png'
21
21
outputType:
22
22
description: 'Output image type'
23
-
default: png
23
+
default: 'png'
24
24
omitBackground:
25
25
description: 'Omit the browser default background. Enable to support transparency.'
26
-
default: true
26
+
default: 'true'
27
27
viewportWidth:
28
28
description: 'Viewport width in pixels'
29
29
required: true
@@ -34,21 +34,21 @@ inputs:
34
34
description: 'Quality of the output image (1-100, applicable for JPEG)'
35
35
required: false
36
36
consoleOutputEnabled:
37
-
descripion: 'Whether or not to output the browser console log'
38
-
default: true
37
+
description: 'Whether or not to output the browser console log'
38
+
default: 'true'
39
39
deviceScaleFactor:
40
40
description: 'Specifies the device scale factor (pixel ratio) for the web page rendering. It determines how many physical pixels are used to represent a single logical pixel. For example, a device scale factor of 2 means one logical pixel is represented by two physical pixels, commonly used for high-DPI (Retina) displays. A value of 1 uses standard pixel density. This factor affects the resolution and quality of the rendered page or screenshot.'
41
41
default: '2'
42
42
required: false
43
43
fullPage:
44
44
description: 'Screen capture the entire page by scrolling down'
45
-
default: false
45
+
default: 'false'
46
46
waitForTimeout:
47
-
description: 'Number of miliseconds to delay before taking screenshot'
48
-
default: 500
47
+
description: 'Number of milliseconds to delay before taking screenshot'
48
+
default: '500'
49
49
puppeteerImage:
50
50
description: 'Docker image to run puppeteer. See https://github.com/puppeteer/puppeteer/pkgs/container/puppeteer'
51
-
default: 'ghcr.io/puppeteer/puppeteer:21.7.0'
51
+
default: 'ghcr.io/puppeteer/puppeteer:22.13.1'
52
52
outputs:
53
53
file:
54
54
description: "File containing the generated screenshot"
@@ -61,25 +61,25 @@ runs:
61
61
shell: bash
62
62
run: |
63
63
# Ensure node_modules folder will have correct permissions
| consoleOutputEnabled |Whether or not to output the browser console log| true | false |
8
8
| css | Custom CSS overrides | N/A | false |
9
9
| customizations | String representation of a YAML or JSON map of CSS paths (key) and replacement (value) | N/A | false |
10
10
| deviceScaleFactor | Specifies the device scale factor (pixel ratio) for the web page rendering. It determines how many physical pixels are used to represent a single logical pixel. For example, a device scale factor of 2 means one logical pixel is represented by two physical pixels, commonly used for high-DPI (Retina) displays. A value of 1 uses standard pixel density. This factor affects the resolution and quality of the rendered page or screenshot. | 2 | false |
@@ -13,10 +13,11 @@
13
13
| omitBackground | Omit the browser default background. Enable to support transparency. | true | false |
| puppeteerImage | Docker image to run puppeteer. See https://github.com/puppeteer/puppeteer/pkgs/container/puppeteer| ghcr.io/puppeteer/puppeteer:22.13.1 | false |
16
17
| url | URL of the HTML content to convert to an image. Use file:// for local files | N/A | true |
0 commit comments