{"id":17911895,"url":"https://github.com/thomasheyenbrock/vercel-deployment-url","last_synced_at":"2026-06-29T17:33:26.433Z","repository":{"id":54527935,"uuid":"268919906","full_name":"thomasheyenbrock/vercel-deployment-url","owner":"thomasheyenbrock","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-30T08:50:59.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T10:44:17.641Z","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/thomasheyenbrock.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}},"created_at":"2020-06-02T22:16:29.000Z","updated_at":"2022-07-05T09:18:11.000Z","dependencies_parsed_at":"2022-08-13T18:40:57.713Z","dependency_job_id":null,"html_url":"https://github.com/thomasheyenbrock/vercel-deployment-url","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/thomasheyenbrock/vercel-deployment-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheyenbrock%2Fvercel-deployment-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheyenbrock%2Fvercel-deployment-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheyenbrock%2Fvercel-deployment-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheyenbrock%2Fvercel-deployment-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasheyenbrock","download_url":"https://codeload.github.com/thomasheyenbrock/vercel-deployment-url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheyenbrock%2Fvercel-deployment-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34937307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-28T19:40:43.351Z","updated_at":"2026-06-29T17:33:26.414Z","avatar_url":"https://github.com/thomasheyenbrock.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel deployment URLs\n\nThis repository contains a GitHub action that uses the Vercel API to find the latest deployment for the current commit. It waits for the deployment to be done and then outputs the URL.\n\n## Envs\n\n### `GITHUB_TOKEN`\n\n**Required** A token to authenticate requests sent to the GitHub API. You can use the one that is [automatically added](https://docs.github.com/en/actions/reference/authentication-in-a-workflow) to your workflow run.\n\n### `VERCEL_TOKEN`\n\n**Required** A token to authenticate requests sent to the Vercel API. You can create one [here](https://vercel.com/account/tokens).\n\n## Inputs\n\n### `project-id`\n\n**Required** The id of your Vercel project. Usually you can find it in the `.vercel/project.json` file inside your repository.\n\n### `team-id`\n\nIf your Vercel project is owned by a team, you have to input the id of the team. It can also be found in the `.vercel/project.json` file. If you use the action for a personal Vercel project, don't use this input.\n\n### `search-retries`\n\nThe number of retries if no deployment can be found for the current commit. There is a 5 second interval between tries. The default is `3`.\n\n### `ready-retries`\n\nThe number of retries if the latest deployment found is not ready yet. There is a 30 second interval between tries. The default is `10`.\n\n## Outputs\n\n### `url`\n\nThe URL of the Vercel preview deployment in a `READY` state.\n\n## Example usage\n\n```yml\n- name: Get deployment URL\n  id: deployment\n  uses: thomasheyenbrock/vercel-deployment-url@v2\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}\n  with:\n    project-id: ${{ secrets.VERCEL_PROjECT_ID }}\n```\n\n## Notes\n\n- The action automatically uses the commit SHA that it runs on to find related Vercel deployments (using [deployment metadata](https://vercel.com/blog/deployment-metadata)). If there are multiple deployments for a single SHA the latest one is taken.\n- This action will fail if the Vercel deployment fails or takes too long to complete.\n- This action will fail if no Vercel deployment can be found for the latest commit.\n- If the latest commit is a merge commit, deployments for previous commits will also be searched recursively. This avoids not finding any deployment due to Vercels deduplication.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasheyenbrock%2Fvercel-deployment-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasheyenbrock%2Fvercel-deployment-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasheyenbrock%2Fvercel-deployment-url/lists"}