No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-03-23 16:43:08 -06:00
.github Deleted .github/workflows/dependabot-auto-merge.yml 2025-03-23 07:20:43 -06:00
.gitignore Initial commit 2022-12-20 08:58:18 -07:00
action.yml feat: use the delay input (#110) 2025-03-23 13:31:43 +00:00
CONTRIBUTING.md Initial commit 2022-12-20 08:58:18 -07:00
entrypoint.sh feat: use the delay input (#110) 2025-03-23 13:31:43 +00:00
HISTORY.md Upgraded from v1.2.1 -> v1.2.2 (#109) 2025-03-23 13:28:43 +00:00
LICENSE Initial commit 2022-12-20 08:58:18 -07:00
README.md Updated README.md (#111) 2025-03-23 16:43:08 -06:00

CI Update release version. Public workflows that use this action.

vercel-wait

Github action to wait for Vercel's GitHub integration automated deploys to be ready which enables triggering any dependent workflows.

Example for push event

on:
  push:
    branches:
      - main

...
    steps:
      - name: Wait for vercel deployment (push)
        uses: tj-actions/vercel-wait@v1
        with:
          project-id: ${{ secrets.VERCEL_PROJECT_ID }}
          token:  ${{ secrets.VERCEL_TOKEN }}
          sha: ${{ github.sha }}

Example for pull request events

on:
  pull_request:
    branches:
      - main

...
    steps:
      - name: Wait for vercel deployment (pull_request)
        uses: tj-actions/vercel-wait@v1
        with:
          project-id: ${{ secrets.VERCEL_PROJECT_ID }}
          token:  ${{ secrets.VERCEL_TOKEN }}
          sha: ${{ github.event.pull_request.head.sha }}

Inputs

- uses: tj-actions/vercel-wait@v1
  id: vercel-wait
  with:
    # Delay in seconds
    # Type: string
    # Default: "5"
    delay: ''

    # Vercel project id can be 
    # obtained from `https://vercel.com/<team>/<project>/settings` 
    # Type: string
    project-id: ''

    # The commit sha to wait 
    # for 
    # Type: string
    sha: ''

    # Vercel team id can be 
    # obtained from `https://vercel.com/teams/<team>/settings` 
    # Type: string
    team-id: ''

    # Timeout in seconds
    # Type: string
    # Default: "600"
    timeout: ''

    # Vercel token can be obtained 
    # from https://vercel.com/account/tokens 
    # Type: string
    token: ''

Outputs

OUTPUT TYPE DESCRIPTION
deployment-alias-error string The deployment alias error
deployment-id string The deployment id
deployment-state string The deployment state
deployment-url string The deployment url

If you feel generous and want to show some extra appreciation:

Buy me a coffee

Credits

This package was created with Cookiecutter using cookiecutter-action

Report Bugs

Report bugs at https://github.com/tj-actions/vercel-wait/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.