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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| branch-name | The 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 }} |
Outputs
| name | description |
|---|---|
| sanitized-branch-name | The 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. |