{"id":18234053,"url":"https://github.com/lauta-dev/website-screenshot-capture-action","last_synced_at":"2026-02-02T10:10:20.176Z","repository":{"id":259529665,"uuid":"878124818","full_name":"Lauta-dev/website-screenshot-capture-action","owner":"Lauta-dev","description":"      Automatically captures screenshots of specified web pages, with options to load from a YAML file or via direct inputs.","archived":false,"fork":false,"pushed_at":"2024-12-11T18:53:52.000Z","size":3886,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T05:08:20.458Z","etag":null,"topics":["automation","github-actions","screenshot","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lauta-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-24T20:28:35.000Z","updated_at":"2024-12-11T18:51:32.000Z","dependencies_parsed_at":"2024-11-20T03:45:10.257Z","dependency_job_id":null,"html_url":"https://github.com/Lauta-dev/website-screenshot-capture-action","commit_stats":{"total_commits":69,"total_committers":2,"mean_commits":34.5,"dds":0.4782608695652174,"last_synced_commit":"87d4cb4862542a9745ed5ef05ecf830d4428f71e"},"previous_names":["lauta-dev/website-screenshot-capture-action"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lauta-dev%2Fwebsite-screenshot-capture-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lauta-dev%2Fwebsite-screenshot-capture-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lauta-dev%2Fwebsite-screenshot-capture-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lauta-dev%2Fwebsite-screenshot-capture-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lauta-dev","download_url":"https://codeload.github.com/Lauta-dev/website-screenshot-capture-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345266,"owners_count":21088244,"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":["automation","github-actions","screenshot","web"],"created_at":"2024-11-04T17:03:18.052Z","updated_at":"2026-02-02T10:10:19.431Z","avatar_url":"https://github.com/Lauta-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Website Screenshot Capture\n\u003e Automatically captures screenshots of specified web pages, with options to load from a YAML file or via direct inputs.\n\n## Contents\n- [Usage](#usage)\n- [Inputs](#inputs)\n- [Output](#output)\n- [Example](#example)\n    - [Push images to another Repository](#push-images-to-another-repository)\n- [Use on](#use-on)\n\n## Usage\n\n### Load file with `YAML`\n```yaml\n- name: Website screenshot\n  uses: lauta-dev/website-screenshot-capture-action\n  with:\n    urls_input_file: anything.yml # or pages.yaml\n```\n\n#### File example\n```yaml\npages:\n  - url: https://google.com\n    name: google\n  - url: https://github.com/Lauta-dev/website-screenshot-capture-action/\n    name: Repository\n    # It's optional\n    # It will be used to run a script before the screenshot\n    # For example, remove headers\n    script: remove_headers.js\n```\n\n### Direct inputs\n```yaml\n- name: Website screenshot\n  uses: lauta-dev/website-screenshot-capture-action\n  with:\n    url: https://github.com/lauta-dev/website-screenshot-capture-action\n    name: Repository\n```\n\n## Inputs\n\n### Required inputs\n| Input             | Type      |\n|-------------------|-----------|\n| name              | string    |\n| url               | string    |\n| urls_input_file   | YAML file |\n\n\u003e [!NOTE]\n\u003e By default, the program will try to load the YAML file. If not found, it will load url and name. \n\n### Optional inputs\n\n| Input             | Type      | Default           | Posible value     |\n|-------------------|-----------|-------------------|-------------------|\n| width             | number    | 1366              |                   |\n| height            | number    | 768               |                   |\n| type              | string    | png               | png, webp, jpeg   |\n| quality           | number    | 100               | 0 to 100          |\n| output_dir        | string    | screenshots       |                   |\n| script            | string    | \" \"               |                   |\n| ui_mode           | string    | \"light\"           | light, dark       |\n\n\u003e [!NOTE]\n\u003e Quality is only applicable to webp and jpeg.\n\n## Output\nScreenshots are saved in screenshots/.\n\n## Example\n```yaml\nname: Take screenshot\non:\n  - push\n\njobs:\n  screenshots:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Screenshot Capture\n        uses: lauta-dev/website-screenshot-capture-action\n        with:\n          urls_input_file: pages.yml\n          width: 412\n          height: 915\n          type: webp\n          quality: 60\n```\n\n### Push images to another repository\n```yaml\nname: Take screenshot\non:\n  - push\n\njobs:\n  screenshots:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Screenshot Capture\n        uses: lauta-dev/website-screenshot-capture-action\n        with:\n          urls_input_file: pages.yml\n          width: 412\n          height: 915\n          type: webp\n          quality: 60\n      \n      - name: Upload artifact\n        uses: actions/upload-artifact@v3\n        with:\n          name: screenshots\n          path: screenshots/\n\n  push-images:\n    runs-on: ubuntu-latest\n    needs: [screenshots]\n    steps:\n      - name: Clone repository\n        run: git clone https://github.com/\"user\"/\"repo\".git\n\n      - name: Download artifact\n        uses: actions/download-artifact@v3\n        with:\n          name: screenshots\n\n      - name: Set up Git\n        run: |\n          git config user.name \"${{ secrets.GH_USERNAME }}\"\n          git config user.email \"${{ secrets.GH_MAIL }}\"\n          git remote set-url origin https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com/\"user\"/\"repo\".git\n\n      - name: Add images and commited\n        run: |\n          git add .\n          git commit -m \"Agregar captura de pantalla\"\n\n      - name: Push screenshots\n        run: |\n          git push origin main\n```\n\n## Use on:\n- [Lauta-dev/portafolio](https://github.com/lauta-dev/portafolio)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flauta-dev%2Fwebsite-screenshot-capture-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flauta-dev%2Fwebsite-screenshot-capture-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flauta-dev%2Fwebsite-screenshot-capture-action/lists"}