Skip to content
Closed
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
37 changes: 6 additions & 31 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
name: 'screenshot-website'
description: 'Capture screenshot of a website'
inputs:
source:
description: 'Source of the content to be captured, may be a URL or HTML content'
required: true
destination:
description: 'The destination filename the captured website will be written to'
required: false
default: 'screenshot.png'
delay:
description: 'The number of seconds to wait after the page finished loading before capturing the screenshot'
required: false
default: '0'
full-page:
description: 'Capture the full scrollable page, not just the viewport'
required: false
default: 'false'
width:
description: 'Page width'
required: false
default: '1280'
outputs:
path:
description: 'The filesystem path to the website screenshot'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'camera'
color: 'purple'
- name: Screenshot Website
uses: swinton/screenshot-website@v1.x
with:
source: https://huggingface.co/
destination: screenshot.png
full-page: true