Skip to content

Wait for a GitHub deployment to complete and get its url

License

Notifications You must be signed in to change notification settings

wbeuil/wait-for-deployment

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Wait For GitHub Deployment

Wait for a GitHub deployment to complete and get its url on push and pull request. Only for Vercel based website. It's gonna by default take the Preview deployment when it's a pull request and the Production deployment when it's a push.

Inputs

token

Required This is your GitHub personal access token. Accessible via ${{ github.token }} or ${{ secrets.GITHUB_TOKEN }}.

timeout

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

Outputs

url

The target URL of the deployment.

Example usage

name: Test Workflow

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: wbeuil/wait-for-deployment@v1.0.0
        id: deployment
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
      - run: echo "Deployed to ${{ steps.deployment.outputs.url }}"

About

Wait for a GitHub deployment to complete and get its url

Resources

License

Stars

Watchers

Forks

Packages

No packages published