Current situation
Currently, the id or name of the job running the surge-preview action is used to create a specific Surge URL for the current deployment. This allows multiple surge deployments from a single workflow or multiple workflows.
The preview website URL is generated like this: https://{{repository.owner}}-{{repository.name}}-{{job.name}}-pr-{{pr.number}}.surge.sh
This job id/name is also used to identify the PR comment related to the deployment.
Drawbacks
Proposal
Introduce a new optional input called deploymentIdentifier (name can be discussed). It defaults to the job id/name (no breaking change).
- If set,
deploymentIdentifier will be used instead of the job id/name when generating the Surge URL and for PR comment identification.
- This input should only accept alpha-numeric characters.
This should make the process more flexible and thinks more explicit.
Current situation
Currently, the id or name of the job running the surge-preview action is used to create a specific Surge URL for the current deployment. This allows multiple surge deployments from a single workflow or multiple workflows.
The preview website URL is generated like this:
https://{{repository.owner}}-{{repository.name}}-{{job.name}}-pr-{{pr.number}}.surge.shThis job id/name is also used to identify the PR comment related to the deployment.
Drawbacks
Proposal
Introduce a new optional input called
deploymentIdentifier(name can be discussed). It defaults to the job id/name (no breaking change).deploymentIdentifierwill be used instead of the job id/name when generating the Surge URL and for PR comment identification.This should make the process more flexible and thinks more explicit.