{"id":16639072,"url":"https://github.com/jakepartusch/wait-for-netlify-action","last_synced_at":"2025-05-07T20:09:54.791Z","repository":{"id":39910414,"uuid":"232135432","full_name":"JakePartusch/wait-for-netlify-action","owner":"JakePartusch","description":"A GitHub action that will wait until a Netlify Preview deploy has completed before continuing on","archived":false,"fork":false,"pushed_at":"2024-05-20T23:02:05.000Z","size":1401,"stargazers_count":48,"open_issues_count":10,"forks_count":54,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T20:09:47.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakePartusch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-01-06T16:00:05.000Z","updated_at":"2025-02-28T00:26:34.000Z","dependencies_parsed_at":"2024-06-18T12:40:27.353Z","dependency_job_id":"8ab142ae-4315-4902-86f2-a2a085c36338","html_url":"https://github.com/JakePartusch/wait-for-netlify-action","commit_stats":{"total_commits":33,"total_committers":4,"mean_commits":8.25,"dds":"0.24242424242424243","last_synced_commit":"ae827eabea9a34edd1fd6fe58637518c6db9ddb9"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakePartusch%2Fwait-for-netlify-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakePartusch%2Fwait-for-netlify-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakePartusch%2Fwait-for-netlify-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakePartusch%2Fwait-for-netlify-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakePartusch","download_url":"https://codeload.github.com/JakePartusch/wait-for-netlify-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949277,"owners_count":21830152,"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":[],"created_at":"2024-10-12T07:05:02.563Z","updated_at":"2025-05-07T20:09:54.745Z","avatar_url":"https://github.com/JakePartusch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wait for Netlify — A GitHub Action ⏱\n\nDo you have other Github actions (Lighthouse, Cypress, etc) that depend on the Netlify Preview URL? This action will wait until the url is available before running the next task.\n\n## Inputs\n\n### `site_name`\n\n**Required** The name of the Netlify site to reach `https://{site_name}.netlify.app`\n\n### `request_headers`\n\nOptional — Stringified HTTP Header object key/value pairs to send in requests (eg. `'{ \"Authorization\": \"Basic YWxhZGRpbjpvcGVuc2VzYW1l }'`)\n\n### `max_timeout`\n\nOptional — The amount of time to spend waiting on Netlify. Defaults to `60` seconds\n\n### `base_path`\n\nOptional — The page that needs to be tested for 200. Defaults to \"/\" (eg: `https://{site_name}.netlify.app{base_path}`)\n\n## Outputs\n\n### `url`\n\nThe netlify deploy preview url that was deployed.\n\n## Example usage\n\nBasic Usage\n\n```yaml\nsteps:\n  - name: Waiting for 200 from the Netlify Preview\n    uses: jakepartusch/wait-for-netlify-action@v1.4\n    id: waitFor200\n    with:\n      site_name: \"jakepartusch\"\n      max_timeout: 60\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eComplete example with Lighthouse\u003c/summary\u003e\n\u003cbr /\u003e\n\n```yaml\nname: Lighthouse\n\non: [pull_request]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n      - name: Use Node.js 12.x\n        uses: actions/setup-node@v1\n        with:\n          node-version: 12.x\n      - name: Install\n        run: |\n          npm ci\n      - name: Build\n        run: |\n          npm run build\n      - name: Waiting for 200 from the Netlify Preview\n        uses: jakepartusch/wait-for-netlify-action@v1.4\n        id: waitFor200\n        with:\n          site_name: \"jakepartusch\"\n      - name: Lighthouse CI\n        run: |\n          npm install -g @lhci/cli@0.3.x\n          lhci autorun --upload.target=temporary-public-storage --collect.url=${{ steps.waitFor200.outputs.url }} || echo \"LHCI failed!\"\n        env:\n          LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakepartusch%2Fwait-for-netlify-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakepartusch%2Fwait-for-netlify-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakepartusch%2Fwait-for-netlify-action/lists"}