Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lannonbr/puppeteer-screenshot-action

A GitHub Action to run a puppeteer script and generate a screenshot
https://github.com/lannonbr/puppeteer-screenshot-action

github-actions

Last synced: 2 months ago
JSON representation

A GitHub Action to run a puppeteer script and generate a screenshot

Awesome Lists containing this project

README

        

# Puppeteer Screenshot Action

A GitHub Action to open Puppeteer and take a screenshot of the page. The screenshot will be saved to `$GITHUB_WORKSPACE/screenshots/screenshot-${timestamp}.png` where the timestamp is the unix timestamp of when the image was taken.
You can change the name of the saved screenshot in the config.

More on GitHub Actions [here](https://github.com/features/actions)

## Prerequisites

- Node.js ([Download](https://nodejs.org/en/download/))
- yarn package manager ([Download](https://yarnpkg.com/lang/en/docs/install))

## Supported platforms

| Platform | Versions | Tested & Working |
| :-------- | :----------------- | :--------------: |
| `ubuntu` | 16.04, 18.04 | :+1: |
| `windows` | Server 2016 & 2019 | :+1: |
| `macOS` | 10.15 | :+1: |

## Example usage

```yaml
steps:
- name: Take photo of github.com
uses: "lannonbr/[email protected]"
with:
url: https://github.com
```