{"id":13630366,"url":"https://github.com/swinton/screenshot-website","last_synced_at":"2025-04-06T09:09:05.741Z","repository":{"id":42289644,"uuid":"245505091","full_name":"swinton/screenshot-website","owner":"swinton","description":":camera_flash: A GitHub Action to capture screenshots of a website, across Windows, Mac, and Linux","archived":false,"fork":false,"pushed_at":"2024-06-24T11:07:50.000Z","size":2388,"stargazers_count":192,"open_issues_count":17,"forks_count":27,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T07:11:15.193Z","etag":null,"topics":["actions","github-actions","screenshot","website"],"latest_commit_sha":null,"homepage":"https://git.io/screenshot-website","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swinton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-06T19:53:57.000Z","updated_at":"2025-03-26T00:23:17.000Z","dependencies_parsed_at":"2024-06-18T14:07:46.493Z","dependency_job_id":"1f1c3731-591a-4bd4-81ff-43cca7bebfff","html_url":"https://github.com/swinton/screenshot-website","commit_stats":{"total_commits":70,"total_committers":4,"mean_commits":17.5,"dds":"0.042857142857142816","last_synced_commit":"8df7c0fd47799a18a322d2bc78d3918602602d26"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swinton%2Fscreenshot-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swinton%2Fscreenshot-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swinton%2Fscreenshot-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swinton%2Fscreenshot-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swinton","download_url":"https://codeload.github.com/swinton/screenshot-website/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457802,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions","screenshot","website"],"created_at":"2024-08-01T22:01:40.209Z","updated_at":"2025-04-06T09:09:05.722Z","avatar_url":"https://github.com/swinton.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# :camera_flash: `screenshot-website` ![](https://github.com/swinton/screenshot-website/workflows/Tests/badge.svg)\n\u003e A GitHub Action to capture screenshots of a website, across Windows, Mac, and Linux\n\n## Contents\n- [Usage](#usage)\n- [Inputs](#inputs)\n- [Outputs](#outputs)\n- [Advanced Usage](#advanced-usage)\n- [Credits](#credits)\n\n## Usage\n\n```yaml\n- name: Screenshot Website\n  uses: swinton/screenshot-website@v1.x\n  with:\n    source: https://github.com/swinton/screenshot-website\n    destination: screenshot.png\n```\n\n## Inputs\n\n### Required inputs\n\n1. `source`: Source of the content to be captured, may be a URL or HTML string, e.g. `https://example.com/`\n1. `destination`: Destination filename the captured website will be written to, defaults to `screenshot.png`\n\n### Optional inputs\n\n_Most_ of the options listed [here](https://github.com/sindresorhus/capture-website#options) (`inputType`, `width`, `height`, etc.) can be passed as inputs, just pass in a [kebab-cased](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) equivalent, e.g. `full-page` for [`fullPage`](https://github.com/sindresorhus/capture-website#fullpage):\n\n```yaml\n- name: Screenshot Website\n  uses: swinton/screenshot-website@v1.x\n  with:\n    source: https://github.com/swinton/screenshot-website\n    destination: screenshot.png\n    full-page: true\n```\n\n## Outputs\n\nAn [artifact](https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts) will be created automatically for each screenshot captured. The following additional outputs are also supported:\n\n1. `path`: The filesystem path to the captured screenshot\n\n## Advanced Usage\n\nUse a matrix to capture screenshots across different operating systems, e.g.\n\n```yaml\njobs:\n  screenshot:\n    name: Screenshot\n    strategy:\n      matrix:\n        os: [ubuntu-latest, macos-latest, windows-latest]\n    runs-on: ${{ matrix.os }}\n\n    steps:\n\n    - name: Screenshot Website\n      uses: swinton/screenshot-website@v1.x\n      with:\n        source: https://github.com/swinton/screenshot-website\n        destination: screenshot-${{ matrix.os }}.png\n```\n\nCombine a matrix with additional options such as width, e.g.\n\n```yaml\njobs:\n  screenshot:\n    name: Screenshot\n    strategy:\n      matrix:\n        os: [ubuntu-latest, macos-latest, windows-latest]\n        width: [1200, 992, 768, 600]\n    runs-on: ${{ matrix.os }}\n\n    steps:\n\n    - name: Screenshot Website\n      uses: swinton/screenshot-website@v1.x\n      with:\n        source: https://github.com/swinton/screenshot-website\n        destination: screenshot-${{ matrix.os }}-${{ matrix.width }}.png\n        width: ${{ matrix.width }}\n```\n\n\n## Credits\n\n- :bow: https://github.com/sindresorhus/capture-website\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswinton%2Fscreenshot-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswinton%2Fscreenshot-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswinton%2Fscreenshot-website/lists"}