shootit

📸 A GitHub Action to capture proofs of a website, across Windows, Mac, and Linux
Contents
Usage
- name: Proof Website
uses: xpippi/shootit@v1.x
with:
source: https://github.com/xpippi/shootit
destination: proof.png
Inputs
Required inputs
source
: Source of the content to be captured, may be a URL or HTML string, e.g.https://example.com/
destination
: Destination filename the captured website will be written to, defaults toproof.png
Optional inputs
- name: Proof Website
uses: xpippi/shootit@v1.x
with:
source: https://github.com/xpippi/shootit
destination: proof.png
full-page: true
Outputs
An artifact will be created automatically for each proof captured. The following additional outputs are also supported:
path
: The filesystem path to the captured proof
Advanced Usage
Use a matrix to capture proofs across different operating systems, e.g.
jobs:
proof:
name: Proof
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Proof Website
uses: xpippi/shootit@v1.x
with:
source: https://github.com/xpippi/shootit
destination: proof-${{ matrix.os }}.png
Combine a matrix with additional options such as width, e.g.
jobs:
proof:
name: Proof
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
width: [1200, 992, 768, 600]
runs-on: ${{ matrix.os }}
steps:
- name: Proof Website
uses: xpippi/shootit@v1.x
with:
source: https://github.com/xpippi/shootit
destination: proof-${{ matrix.os }}-${{ matrix.width }}.png
width: ${{ matrix.width }}