This action takes any string and make sure it is valid for inclusion as a url or domain name
- lower case the string
- replace any non valid url characters with hyphen (-)
- remove trailing and ending hyphens
- truncate to 63 characters length
- trim spaces
Heavily based on gitlab's slugify from this link: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/utils.rb#L100
Required The name of the string to urlify.
The urlified version of the string.
uses: efiShtain/urlify-string@v1.1
with:
string: "feature/ci/test-123"Urlify String is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.