Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ _Most_ of the options listed [here](https://github.com/sindresorhus/capture-webs
uses: swinton/[email protected]
with:
source: https://github.com/swinton/screenshot-website
destination: screenshot.png
destination: screenshot.jpeg
type: jpeg
full-page: true
scale-factor: 0.5
width: 1600
```

## Outputs
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
description: 'The destination filename the captured website will be written to'
required: false
default: 'screenshot.png'
type:
description: 'Image type : png or jpeg'
required: false
default: 'png'
delay:
description: 'The number of seconds to wait after the page finished loading before capturing the screenshot'
required: false
Expand All @@ -20,6 +24,10 @@ inputs:
description: 'Page width'
required: false
default: '1280'
scale-factor:
description: 'Webpage scale factor'
required: false
default: '2'
outputs:
path:
description: 'The filesystem path to the website screenshot'
Expand Down