GitXplorerGitXplorer
m

wait-for-vercel-action

public
7 stars
3 forks
0 issues

Commits

List of commits on branch master.
Verified
5b121be21faa2975cea89e7afa4dc4042fabbbde

Add project-id (#7)

mmskelton committed 4 years ago
Verified
a8ec47c193920c9998d8537f0af0de9c12cd8baf

Update README.md

mmskelton committed 4 years ago
Verified
d20d968e3414c3469fa92d55b3ae4900faf5c2dc

Bump @actions/core from 1.2.4 to 1.2.6 (#5)

ddependabot[bot] committed 4 years ago
Verified
ba3742a7c40ff0f6209e9bf9cf464cd2313764ab

Add team ID and await build parameters (#4)

rrihardsgravis committed 4 years ago
Verified
c3923e7f331db611914031105a0d3aa9eb6f451a

Bump node-fetch from 2.6.0 to 2.6.1 (#3)

ddependabot[bot] committed 4 years ago
Verified
c45a679939420d58c768c46db5cb54a77b415fba

Change http to https; Vercel only offers https (#2)

JJasperV committed 4 years ago

README

The README file for this repository.

Wait for Vercel Action ⏱

GitHub Action to wait for a Vercel deployment.

Update December 2020

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.

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.

await-build

Wait for the deployment to be built before returning the url.

project-id

Vercel project ID if you only want to wait for builds for a specific project.

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