volumioteam/Sanitize Branch Name

Sanitizes a branch name to be lowercase, alphanumeric with hyphens only — safe for use in URLs, Docker tags, and Kubernetes labels.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
branch-nameThe raw branch name to sanitize. Defaults to the branch that triggered the workflow (github.ref_name). Override this if you need to sanitize an arbitrary string. no${{ github.ref_name }}
namedescription
sanitized-branch-nameThe sanitized branch name: lowercased, with any character that is not a-z or 0-9 replaced by a hyphen, consecutive hyphens collapsed, and leading/trailing hyphens removed.