Skip to content

Introduce optional deploymentId input for custom deployment URLs #323

@tbouffard

Description

@tbouffard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions