The screenshot plugin lets you take a screenshot from any website.
It can be restricted with a CSS selector or you can take a full page.
Option |
Type (format) [default] {allowed values} |
Description |
plugin_screenshot |
boolean [no] |
Display a screenshot of any website |
plugin_screenshot_title |
string [Screenshot] |
Screenshot title caption |
plugin_screenshot_url |
string [] |
Website to take screenshot |
plugin_screenshot_selector |
string [body] |
Selector to take in screenshot |
plugin_screenshot_background |
boolean [yes] |
Display or remove default page background |
→ Full specification
name: XKCD of the day
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.screenshot.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ''
plugin_screenshot: 'yes'
plugin_screenshot_title: XKCD of the day
plugin_screenshot_url: https://xkcd.com
plugin_screenshot_selector: '#comic img'