From a4e667b438ab2f5b07394e8311c3d502d9220443 Mon Sep 17 00:00:00 2001 From: Jim Bumgardner Date: Fri, 19 Apr 2024 14:15:51 -0700 Subject: [PATCH] Fixed bug which broke pr preview when branch names contained uppercase letters. --- .github/workflows/eleventy_build_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eleventy_build_pr.yml b/.github/workflows/eleventy_build_pr.yml index cf51f6fa8c8..2e964ff474b 100644 --- a/.github/workflows/eleventy_build_pr.yml +++ b/.github/workflows/eleventy_build_pr.yml @@ -31,7 +31,7 @@ jobs: run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF})" >> $GITHUB_ENV - name: Escape branch name for URL shell: bash - run: echo "URLSAFE_BRANCH_NAME=$(echo ${BRANCH_NAME} | sed 's|[^A-Za-z0-9-]|-|g' | sed -E 's|-*([A-Za-z0-9]*.*[A-Za-z0-9]+)-*|\1|')" >> $GITHUB_ENV + run: echo "URLSAFE_BRANCH_NAME=$(echo ${BRANCH_NAME} | tr '[:upper:]' '[:lower:]' | sed 's|[^A-Za-z0-9-]|-|g' | sed -E 's|-*([A-Za-z0-9]*.*[A-Za-z0-9]+)-*|\1|')" >> $GITHUB_ENV - name: Report escaped branch name shell: bash run: echo ${URLSAFE_BRANCH_NAME}