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

aaron-weisberg-qz/wait-for-deployment

 
 

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/[email protected]
        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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%