screenshot website
v1.0.2
screenshot-website在Windows,Mac和Linux上捕获网站屏幕截图的GitHub操作
- name : Screenshot Website
uses : swinton/[email protected]
with :
source : https://github.com/swinton/screenshot-website
destination : screenshot.png source :要捕获的内容的来源,可能是URL或html字符串,例如https://example.com/destination :目标文件名将写入捕获的网站,默认为screenshot.png此处列出的大多数选项( inputType , width , height等)可以作为输入传递,只需通过烤肉串的等效量传递,例如全fullPage : full-page :
- name : Screenshot Website
uses : swinton/[email protected]
with :
source : https://github.com/swinton/screenshot-website
destination : screenshot.png
full-page : true 将对捕获的每个屏幕截图自动创建工件。还支持以下其他输出:
path :捕获的屏幕截图的文件系统路径使用矩阵捕获跨不同操作系统的屏幕截图,例如
jobs :
screenshot :
name : Screenshot
strategy :
matrix :
os : [ubuntu-latest, macos-latest, windows-latest]
runs-on : ${{ matrix.os }}
steps :
- name : Screenshot Website
uses : swinton/[email protected]
with :
source : https://github.com/swinton/screenshot-website
destination : screenshot-${{ matrix.os }}.png将矩阵与其他选项(例如宽度)相结合,例如
jobs :
screenshot :
name : Screenshot
strategy :
matrix :
os : [ubuntu-latest, macos-latest, windows-latest]
width : [1200, 992, 768, 600]
runs-on : ${{ matrix.os }}
steps :
- name : Screenshot Website
uses : swinton/[email protected]
with :
source : https://github.com/swinton/screenshot-website
destination : screenshot-${{ matrix.os }}-${{ matrix.width }}.png
width : ${{ matrix.width }}