GitHub Action to wait for the Vercel Preview URL.
Based on patrickedqvist/wait-for-vercel-preview and actions/typescript-action.
You can use ${{ secrets.GITHUB_TOKEN }}
.
The name of your Vercel project. Used to find the correct deployment when your repository is connected to multiple Vercel projects, which can trigger multiple deployments for a single event.
How often (in seconds) to check if the preview URL is available.
How many times to check if the preview URL is available before failing.
How many seconds to wait before starting to check. This is useful for slow builds. For example, if your project build takes at least 2m30s
, set this value to 150
(seconds).
steps:
- name: Wait for Vercel Preview URL
uses: octref/await-vercel-url@v0.3.9
id: waitForVercel
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
vercel_project_name: 'web' # your Vercel project name
interval: 15 # check every 15 seconds
retries: 60 # perform 60 checks before failing
delay: 150 # if your build takes at least 150 seconds to finish
- Support for monorepo setup with multiple Vercel projects
- Support for both
push
andpull_request
events - Informative and highlighted logs
- Verbose logs including GitHub API responses when
ACTIONS_STEP_DEBUG
secrets/variables is set totrue
- License
- Tests