Skip to content

PenfoldTechnology/vercel-branch-preview-url-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vercel-branch-preview-url-action

Generate the branch preview URL for a Vercel deployment

Useful if you want to know the branch preview URL ahead of a Vercel deployment being completed.

Inputs

  • vercel-team-id: your Vercel team ID
  • vercel-project-name: your Vercel project name
  • git-branch-name: the Git branch name

Outputs

  • url: the branch preview URL

Example

jobs:
  branch-preview-url:
    steps:
      - name: Generate branch preview URL
        id: branch-preview-url
        uses: PenfoldTechnology/vercel-branch-preview-url-action@v1.0.0
        with:
          git-branch-name: ${{ github.head_ref || github.ref_name }}
          vercel-project-name: fancy-project
          vercel-team-id: fancy-team
      - name: Print URL
        run: echo "${{ steps.branch-preview-url.outputs.url }}"

About

Generate the branch preview URL of a Vercel deployment

Resources

Stars

Watchers

Forks

Packages

No packages published