We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1784d00 commit 955784cCopy full SHA for 955784c
1 file changed
.github/workflows/docs-preview-links.yml
@@ -33,7 +33,7 @@ jobs:
33
REPO_PREVIEW_TEMPLATE: ${{ vars.DOCS_PREVIEW_BASE_URL_TEMPLATE }}
34
run: |
35
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
36
- BRANCH_SLUG=$(echo "$BRANCH_NAME" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/-\+/-/g' | sed 's/^-//' | sed 's/-$//')
+ BRANCH_SLUG=$(echo "$BRANCH_NAME" | tr '[:upper:]' '[:lower:]' | tr -d '_' | sed 's/[^a-z0-9]/-/g' | sed 's/-\+/-/g' | sed 's/^-//' | sed 's/-$//')
37
38
if [ -n "$REPO_PREVIEW_BASE_URL" ]; then
39
BASE_URL="$REPO_PREVIEW_BASE_URL"
0 commit comments