{"id":20917952,"url":"https://github.com/avigoldman/wait-for-deployments-action","last_synced_at":"2026-04-25T06:35:21.202Z","repository":{"id":219938954,"uuid":"388572904","full_name":"avigoldman/wait-for-deployments-action","owner":"avigoldman","description":"Waits for all deployments to complete before continuing.","archived":false,"fork":false,"pushed_at":"2021-07-28T21:57:46.000Z","size":1291,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T23:58:05.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/avigoldman.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}},"created_at":"2021-07-22T19:19:30.000Z","updated_at":"2023-10-05T12:58:55.000Z","dependencies_parsed_at":"2024-01-30T14:00:15.953Z","dependency_job_id":null,"html_url":"https://github.com/avigoldman/wait-for-deployments-action","commit_stats":null,"previous_names":["avigoldman/wait-for-deployments-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/avigoldman/wait-for-deployments-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avigoldman%2Fwait-for-deployments-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avigoldman%2Fwait-for-deployments-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avigoldman%2Fwait-for-deployments-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avigoldman%2Fwait-for-deployments-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avigoldman","download_url":"https://codeload.github.com/avigoldman/wait-for-deployments-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avigoldman%2Fwait-for-deployments-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32253251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-18T16:36:42.475Z","updated_at":"2026-04-25T06:35:21.179Z","avatar_url":"https://github.com/avigoldman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wait for deployments\n\nWaits for all GitHub deployments to succeed before continuing.\n\nUse this to wait for your deployments to finish building before running tests against the live versions of your websites.\n\n## Usage\n\nSee [action.yml](https://github.com/useparcel/wait-for-deployments-action/blob/main/action.yml)\n\n```yml\non: [pull_request]\njobs:\n  wait_for_deployments_job:\n    runs-on: ubuntu-latest\n    name: Log deployments\n    steps:\n      - name: Wait for deployments\n        id: wait\n        uses: useparcel/wait-for-deployments-action@0.1.0\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Inputs\n\n- `github_token` - GitHub access token. Required.\n- `environment_filter` - Regular expression used against the environment name to filter which deployments to wait for.\n- `initial_delay` - Time to wait before starting deployment checks. Defaults to `0s`.\n- `check_interval` - Time to wait between deployment checks. Defaults to `30s`.\n- `max_timeout` - Time to wait for the deployments to finish. Defaults to `20m`.\n\n`initial_delay`, `check_interval`, and `max_timeout` all accept a \"[to-time](https://www.npmjs.com/package/to-time)\" input.\n\nThe following are all valid inputs: `1 hour`, `1h`, `1 minute`, `1m`, `30 seconds`, `30s`, `10 minutes 15 seconds`, `10m 15s`, `5000 milliseconds`, `5000ms`.\n\n## Output\n\nAfter this action completes, you will have access to the variable `deployments` which contains an stringified JSON array of deployments containing the following properties.\n\n- `environment` - Deployment environment name. This is the label on the left hand side of the deployments table.\n- `url` - Target url for the deployment. This is the button on the right hand side of the deployments table.\n\n![Deployments table screenshot from GitHub](./deployments.png)\n\n```diff\non: [pull_request]\njobs:\n  wait_for_deployments_job:\n    runs-on: ubuntu-latest\n    name: Log deployments\n    steps:\n      - name: Wait for deployments\n        id: wait\n        uses: useparcel/wait-for-deployments-action@0.1.0\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n+     - name: Log deployments\n+       id: log\n+       run: echo \"${{ steps.wait.outputs.deployments }}\"\n```\n\n## Error handling\n\nIf a deployment fails, this action will fail as well.\n\nYou can catch this error with an additional step:\n\n```diff\non: [pull_request]\njobs:\n  wait_for_deployments_job:\n    runs-on: ubuntu-latest\n    name: Log deployments\n    steps:\n      - name: Wait for deployments\n        id: wait\n        uses: useparcel/wait-for-deployments-action@0.1.0\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n      - name: Log deployments\n        id: log\n        run: echo \"${{ steps.wait.outputs.deployments }}\"\n+     - name: Deployment failed\n+       if: ${{ failure() }}\n+       id: failed\n+       run: echo \"Something went wrong\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favigoldman%2Fwait-for-deployments-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favigoldman%2Fwait-for-deployments-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favigoldman%2Fwait-for-deployments-action/lists"}