generated from actions/container-toolkit-action
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
34 lines (33 loc) · 1019 Bytes
/
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
name: 'Webpage to PDF'
description: 'Github Action to convert any webpage to a PDF document.'
author: 'Noe Nieto <[email protected]'
inputs:
webPageURL:
description: 'URL of the page'
required: true
outputFile:
description: 'Path to the resulting PDF file'
required: true
pdfOptions:
description: |
PDF options as described here:
https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions -
Needs to be in JSON format, e.g. `{"format": "Letter", "pageRanges": "1"}`
This only works when set usePuppeteer to true.
required: false
default: "{}"
usePuppeteer:
description: |
Use the Puppeteer library instead of calling google-chrome directly.
This would allow more control over the output, but for the moment it doesn't
work as expected.
required: false
default: "false"
runs:
# using: 'node12'
# main: 'dist/index.js'
using: 'docker'
image: 'Dockerfile'
branding:
color: "green"
icon: "file"