Skip to content
A GitHub Action to run a puppeteer script and generate a screenshot
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
CHANGELOG.md
LICENSE
README.md
action.yml
index.js
package.json
webpack.config.js
yarn.lock

README.md

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.

More on GitHub Actions here

Prerequisites

Supported platforms

Platform Versions Tested & Working
ubuntu 16.04, 18.04 👍
windows Server 2016 & 2019 👍
macOS 10.14 👎

Why won't it work on macOS? The GitHub Actions virtual environment for macOS does not come preinstalled with Google Chrome. This is required in order to run puppeteer-core.

Example usage

steps:
  - name: Take photo of github.com
    uses: "lannonbr/puppeteer-screenshot-action@1.0.0"
    with:
      url: https://github.com
You can’t perform that action at this time.