Skip to content

PenfoldTechnology/wait-for-vercel-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait for Vercel Action ⏱

GitHub Action to wait for a Vercel deployment.

Inputs

prod-url

Required Production url to wait for on master builds. Branch builds will wait for the deployment url associated with the current commit.

token

Required Authorization token generated from your account settings page.

timeout

Maximum time in seconds to wait for the deployment. Default 120.

Outputs

url

The Vercel deployment url that was deployed.

Example usage

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 }}
  - run: npm test
    env:
      ENVIRONMENT_URL: ${{ steps.wait-for-vercel.outputs.url }}

About

Wait for Vercel deployment to complete for a commit.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%