GitHub Action to wait for a Vercel deployment.
I will be archiving this action in favor of github-action-await-vercel created by UnlyEd. They have greatly improved on the concept I developed here by using TypeScript, adding tests, adding fantastic documentation, and much more. I will be archiving this repo in the near future, but it will remain available so as to not break existing users of this action.
Required Production url to wait for on master builds. Branch builds will wait for the deployment url associated with the current commit.
Required Authorization token generated from your account settings page.
Maximum time in seconds to wait for the deployment. Default 120
.
Wait for the deployment to be built before returning the url.
Vercel project ID if you only want to wait for builds for a specific project.
The Vercel deployment url that was deployed.
Basic:
steps:
- name: Wait for Vercel deployment
uses: mskelton/wait-for-vercel-action@v1
with:
prod-url: example.now.sh
token: ${{ secrets.VERCEL_TOKEN }}
Use the deployment url in another step:
steps:
- name: Waiting for Vercel deployment
uses: mskelton/wait-for-vercel-action@v1
id: wait-for-vercel
with:
prod-url: example.now.sh
token: ${{ secrets.VERCEL_TOKEN }}
await-build: true
- run: npm test
env:
ENVIRONMENT_URL: ${{ steps.wait-for-vercel.outputs.url }}