justincase-jp/Get and Alias Vercel Preview URL
Get preview URL of a Vercel deployment and alias it automatically
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| vercel_access_token | https://vercel.com/docs/rest-api#introduction/api-basics/authentication/creating-an-access-token | yes | — |
| vercel_project_id | Get your Project ID from project settings in Vercel management console | yes | — |
| vercel_team_id | https://vercel.com/docs/rest-api#introduction/api-basics/authentication/accessing-resources-owned-by-a-team | no | — |
| alias_template | template of alias preview url. eg: {random}.e2e-test.mysite.com | no | — |
| token | https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | no | ${{ github.token }} |
| retry_times | Max retry times for waiting deployment(default: 18) | no | 18 |
| interval | Time span (ms) waiting between requests to the Vercel API(default: 10000ms) | no | 10000 |
| fail_when_cancelled | Automatically fail if deployment of Vercel is cancelled(default: true) | no | true |
| commit_sha | sha of commit which triggered Vercel Preview deployment. It is useful when workflow is triggered by issue_comment. | no | — |
Outputs
| name | description |
|---|---|
| preview_url_alias | Alias of Vercel Preview URL |
| preview_url_origin | Original Vercel Preview URL |
| status | Status of the Vercel deployment |