screenshot website
v1.0.2
screenshot-websiteWebサイトのスクリーンショット、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 }}