screenshot website
v1.0.2
screenshot-websiteการกระทำของ GitHub เพื่อจับภาพหน้าจอของเว็บไซต์ข้าม Windows, Mac และ Linux
- name : Screenshot Website
uses : swinton/[email protected]
with :
source : https://github.com/swinton/screenshot-website
destination : screenshot.png source : แหล่งที่มาของเนื้อหาที่จะถูกจับอาจเป็น url หรือ html string เช่น https://example.com/destination : ชื่อไฟล์ปลายทางเว็บไซต์ที่ถูกจับจะถูกเขียนไปยังค่าเริ่มต้นไปยัง screenshot.png ตัวเลือก ส่วนใหญ่ ที่ระบุไว้ที่นี่ ( inputType , width , height , ฯลฯ ) สามารถส่งเป็นอินพุตได้เพียงส่งผ่านในเคบับเทียบเท่ากับหน้าเต็มเช่น full-page สำหรับ fullPage :
- 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 }}